From 4191287261b46b95908469c2ec3fa9d886681861 Mon Sep 17 00:00:00 2001
From: Robert Jaros Creates DataContainer bound to given data model.
@@ -22,6 +22,8 @@
+ Constructor
<init>
-
-DataContainer(model: ObservableList<M>, binding: (Int) -> C, child: Container = VPanel())
+
+DataContainer(model: ObservableList<M>, binding: (Int) -> C, child: Container = VPanel(), init: DataContainer<M, C>.() -> Unit = null)
Parameters
binding
- a function which creates component C from data model at given indexchild
- internal container (defaults to VPanel)init
- an initializer extension function
Creates DataContainer bound to given data model.
fun <M : DataComponent, C : Component> Container.dataContainer(model: ObservableList<M>, binding: (Int) -> C, child: Container = VPanel(), init: DataContainer<M, C>.() -> Unit = null): Unit
+DSL builder extension function
+It takes the same parameters as the constructor of the built component.
+diff --git a/docs/api/pl.treksoft.kvision.data/-data-container/data-container.html b/docs/api/pl.treksoft.kvision.data/-data-container/data-container.html new file mode 100644 index 00000000..25a1c33e --- /dev/null +++ b/docs/api/pl.treksoft.kvision.data/-data-container/data-container.html @@ -0,0 +1,16 @@ + +
+ +
+ + +
+