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/data-container.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'api/pl.treksoft.kvision.data/-data-container/data-container.html') 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 920b49cf..6c6029ef 100644 --- a/api/pl.treksoft.kvision.data/-data-container/data-container.html +++ b/api/pl.treksoft.kvision.data/-data-container/data-container.html @@ -8,9 +8,13 @@ kvision / pl.treksoft.kvision.data / DataContainer / dataContainer

dataContainer

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

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

DSL builder extension function with VPanel default.

+

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

-- cgit