From f23e74c2eb0cae2f6ce674881e86ab5d5659ad77 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Tue, 29 Jan 2019 23:41:38 +0100 Subject: API documentation for KVision 0.0.23 --- api/pl.treksoft.kvision.data/-data-container/index.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'api/pl.treksoft.kvision.data/-data-container/index.html') diff --git a/api/pl.treksoft.kvision.data/-data-container/index.html b/api/pl.treksoft.kvision.data/-data-container/index.html index c5db6a9b..d04561fb 100644 --- a/api/pl.treksoft.kvision.data/-data-container/index.html +++ b/api/pl.treksoft.kvision.data/-data-container/index.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.data / DataContainer

DataContainer

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

A container class with support for observable data model.

Constructors

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

<init>

@@ -135,7 +135,7 @@

clearOnUpdate

@@ -153,7 +153,7 @@

onUpdate

@@ -461,8 +461,10 @@

dataContainer

-- cgit
-DataContainer(model: ObservableList<M>, factory: (Int, M) -> C, filter: (Int, M) -> Boolean = null, mapping: (List<Pair<Int, M>>) -> List<Pair<Int, M>> = null, container: Container = VPanel(), init: DataContainer<M, C>.() -> Unit = null) +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)

Creates DataContainer bound to given data model.

-fun clearOnUpdate(): DataContainer<M, C> +fun clearOnUpdate(): DataContainer<M, C, CONT>

Clears notification handler.

-fun onUpdate(handler: () -> Unit): DataContainer<M, C> +fun onUpdate(handler: () -> Unit): DataContainer<M, C, CONT>

Sets a notification handler called after every update.

-fun <M, C : Component> Container.dataContainer(model: ObservableList<M>, factory: (Int, M) -> C, filter: (Int, M) -> Boolean = null, mapping: (List<Pair<Int, M>>) -> List<Pair<Int, M>> = null, container: Container = VPanel(), init: DataContainer<M, C>.() -> Unit = null): DataContainer<M, C> +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>

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> +

DSL builder extension function with VPanel default.