From 8449ff519f3d853ca82c792dccf12d06fb09b627 Mon Sep 17 00:00:00 2001
From: Robert Jaros Creates DataContainer bound to given data model.
-
<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)
Parameters
model
- data model of type ObservableListmodel
- 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
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.