From 8449ff519f3d853ca82c792dccf12d06fb09b627 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Wed, 24 Apr 2019 23:12:48 +0200 Subject: API documentation for KVision 0.0.35 --- .../-data-container/-init-.html | 6 ++-- .../-data-container/data-container.html | 8 ++--- .../-data-container/index.html | 39 ++++++++++++++-------- 3 files changed, 33 insertions(+), 20 deletions(-) (limited to 'api/pl.treksoft.kvision.data/-data-container') diff --git a/api/pl.treksoft.kvision.data/-data-container/-init-.html b/api/pl.treksoft.kvision.data/-data-container/-init-.html index ada30771..8e9b58d5 100644 --- a/api/pl.treksoft.kvision.data/-data-container/-init-.html +++ b/api/pl.treksoft.kvision.data/-data-container/-init-.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.data / DataContainer / <init>

<init>

- -DataContainer(model: ObservableList<M>, factory: (M, Int, ObservableList<M>) -> C, container: CONT, containerAdd: (CONT.(C, M) -> Unit)? = null, filter: ((M) -> Boolean)? = null, sorter: ((M) -> Comparable<*>?)? = null, sorterType: () -> SorterType = { SorterType.ASC }, init: (DataContainer<M, C, CONT>.() -> Unit)? = null) + +DataContainer(model: MutableList<M>, factory: (M, Int, MutableList<M>) -> C, container: CONT, containerAdd: (CONT.(C, M) -> Unit)? = null, filter: ((M) -> Boolean)? = null, sorter: ((M) -> Comparable<*>?)? = null, sorterType: () -> SorterType = { SorterType.ASC }, init: (DataContainer<M, C, CONT>.() -> Unit)? = null)

Creates DataContainer bound to given data model.

Parameters

@@ -19,7 +19,7 @@

CONT - container type

-model - data model of type ObservableList

+model - data model of type MutableList

factory - a function which creates component C from data model at given index

diff --git a/api/pl.treksoft.kvision.data/-data-container/data-container.html b/api/pl.treksoft.kvision.data/-data-container/data-container.html index f4e89a13..a048354f 100644 --- a/api/pl.treksoft.kvision.data/-data-container/data-container.html +++ b/api/pl.treksoft.kvision.data/-data-container/data-container.html @@ -8,12 +8,12 @@ kvision / pl.treksoft.kvision.data / DataContainer / dataContainer

dataContainer

- -fun <M, C : Component, CONT : Container> Container.dataContainer(model: ObservableList<M>, factory: (M, Int, ObservableList<M>) -> C, container: CONT, containerAdd: (CONT.(C, M) -> Unit)? = null, filter: ((M) -> Boolean)? = null, sorter: ((M) -> Comparable<*>?)? = null, sorterType: () -> SorterType = { SorterType.ASC }, init: (DataContainer<M, C, CONT>.() -> Unit)? = null): DataContainer<M, C, CONT> + +fun <M, C : Component, CONT : Container> Container.dataContainer(model: MutableList<M>, factory: (M, Int, MutableList<M>) -> C, container: CONT, containerAdd: (CONT.(C, M) -> Unit)? = null, filter: ((M) -> Boolean)? = null, sorter: ((M) -> Comparable<*>?)? = null, sorterType: () -> SorterType = { SorterType.ASC }, init: (DataContainer<M, C, CONT>.() -> Unit)? = null): DataContainer<M, C, CONT>

DSL builder extension function.

It takes the same parameters as the constructor of the built component.

- -fun <M, C : Component> Container.dataContainer(model: ObservableList<M>, factory: (M, Int, ObservableList<M>) -> C, containerAdd: (VPanel.(C, M) -> Unit)? = null, filter: ((M) -> Boolean)? = null, sorter: ((M) -> Comparable<*>?)? = null, sorterType: () -> SorterType = { SorterType.ASC }, init: (DataContainer<M, C, VPanel>.() -> Unit)? = null): DataContainer<M, C, VPanel> + +fun <M, C : Component> Container.dataContainer(model: MutableList<M>, factory: (M, Int, MutableList<M>) -> C, containerAdd: (VPanel.(C, M) -> Unit)? = null, filter: ((M) -> Boolean)? = null, sorter: ((M) -> Comparable<*>?)? = null, sorterType: () -> SorterType = { SorterType.ASC }, init: (DataContainer<M, C, VPanel>.() -> Unit)? = null): DataContainer<M, C, VPanel>

DSL builder extension function with VPanel default.

It takes the same parameters as the constructor of the built component.

diff --git a/api/pl.treksoft.kvision.data/-data-container/index.html b/api/pl.treksoft.kvision.data/-data-container/index.html index 28467e1c..3846d6b0 100644 --- a/api/pl.treksoft.kvision.data/-data-container/index.html +++ b/api/pl.treksoft.kvision.data/-data-container/index.html @@ -9,7 +9,7 @@

DataContainer

class DataContainer<M, C : Component, CONT : Container> : Widget, Container, DataUpdatable -

A container class with support for observable data model.

+

A container class with support for mutable/observable data model.

Constructors

@@ -18,7 +18,7 @@

<init>

@@ -121,6 +121,20 @@ + + + + + + + +
-DataContainer(model: ObservableList<M>, factory: (M, Int, ObservableList<M>) -> C, container: CONT, containerAdd: (CONT.(C, M) -> Unit)? = null, filter: ((M) -> Boolean)? = null, sorter: ((M) -> Comparable<*>?)? = null, sorterType: () -> SorterType = { SorterType.ASC }, init: (DataContainer<M, C, CONT>.() -> Unit)? = null) +DataContainer(model: MutableList<M>, factory: (M, Int, MutableList<M>) -> C, container: CONT, containerAdd: (CONT.(C, M) -> Unit)? = null, filter: ((M) -> Boolean)? = null, sorter: ((M) -> Comparable<*>?)? = null, sorterType: () -> SorterType = { SorterType.ASC }, init: (DataContainer<M, C, CONT>.() -> Unit)? = null)

Creates DataContainer bound to given data model.

var tooltipOptions: TooltipOptions?
+

vnkey

+
+var vnkey: String?
+

vnode

+
+var vnode: VNode?

Functions

@@ -254,15 +268,6 @@ -

afterPostpatch

- - -open fun afterPostpatch(node: VNode): Unit -

Method called after updating Snabbdom vnode.

- - - -

clearDragDropData

@@ -414,6 +419,14 @@ +

refreshOnUpdate

+ + +fun <T> refreshOnUpdate(refreshFunction: (T) -> Unit = { this.refresh() }): Widget.RefreshDelegateProvider<T>
+fun <T> refreshOnUpdate(initialValue: T, refreshFunction: (T) -> Unit = { this.refresh() }): Widget.RefreshDelegateProvider<T> + + +

removeCssClass

@@ -562,9 +575,9 @@

dataContainer

-fun <M, C : Component, CONT : Container> Container.dataContainer(model: ObservableList<M>, factory: (M, Int, ObservableList<M>) -> C, container: CONT, containerAdd: (CONT.(C, M) -> Unit)? = null, filter: ((M) -> Boolean)? = null, sorter: ((M) -> Comparable<*>?)? = null, sorterType: () -> SorterType = { SorterType.ASC }, init: (DataContainer<M, C, CONT>.() -> Unit)? = null): DataContainer<M, C, CONT> +fun <M, C : Component, CONT : Container> Container.dataContainer(model: MutableList<M>, factory: (M, Int, MutableList<M>) -> C, container: CONT, containerAdd: (CONT.(C, M) -> Unit)? = null, filter: ((M) -> Boolean)? = null, sorter: ((M) -> Comparable<*>?)? = null, sorterType: () -> SorterType = { SorterType.ASC }, init: (DataContainer<M, C, CONT>.() -> Unit)? = null): DataContainer<M, C, CONT>

DSL builder extension function.

-fun <M, C : Component> Container.dataContainer(model: ObservableList<M>, factory: (M, Int, ObservableList<M>) -> C, containerAdd: (VPanel.(C, M) -> Unit)? = null, filter: ((M) -> Boolean)? = null, sorter: ((M) -> Comparable<*>?)? = null, sorterType: () -> SorterType = { SorterType.ASC }, init: (DataContainer<M, C, VPanel>.() -> Unit)? = null): DataContainer<M, C, VPanel> +fun <M, C : Component> Container.dataContainer(model: MutableList<M>, factory: (M, Int, MutableList<M>) -> C, containerAdd: (VPanel.(C, M) -> Unit)? = null, filter: ((M) -> Boolean)? = null, sorter: ((M) -> Comparable<*>?)? = null, sorterType: () -> SorterType = { SorterType.ASC }, init: (DataContainer<M, C, VPanel>.() -> Unit)? = null): DataContainer<M, C, VPanel>

DSL builder extension function with VPanel default.

-- cgit