From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 26 Oct 2019 00:17:24 +0200 Subject: API documentation for KVision 2.0.0 --- api/pl.treksoft.kvision.data/data-container.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 api/pl.treksoft.kvision.data/data-container.html (limited to 'api/pl.treksoft.kvision.data/data-container.html') diff --git a/api/pl.treksoft.kvision.data/data-container.html b/api/pl.treksoft.kvision.data/data-container.html new file mode 100644 index 00000000..d1a69659 --- /dev/null +++ b/api/pl.treksoft.kvision.data/data-container.html @@ -0,0 +1,20 @@ + + + +dataContainer - kvision + + + +kvision / pl.treksoft.kvision.data / dataContainer
+
+

dataContainer

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

+ + -- cgit