From 4191287261b46b95908469c2ec3fa9d886681861 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Mon, 12 Feb 2018 10:51:45 +0100 Subject: Updated API doc --- .../-data-container/-init-.html | 6 ++++-- .../-data-container/data-container.html | 16 ++++++++++++++ .../-data-container/index.html | 25 +++++++++++++++++++++- 3 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 docs/api/pl.treksoft.kvision.data/-data-container/data-container.html (limited to 'docs/api/pl.treksoft.kvision.data') diff --git a/docs/api/pl.treksoft.kvision.data/-data-container/-init-.html b/docs/api/pl.treksoft.kvision.data/-data-container/-init-.html index 2a282883..0abb803f 100644 --- a/docs/api/pl.treksoft.kvision.data/-data-container/-init-.html +++ b/docs/api/pl.treksoft.kvision.data/-data-container/-init-.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.data / DataContainer / <init>

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

Creates DataContainer bound to given data model.

Parameters

@@ -22,6 +22,8 @@ binding - a function which creates component C from data model at given index

child - internal container (defaults to VPanel)

+

+init - an initializer extension function

Constructor
Creates DataContainer bound to given data model.

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 @@ + + + +DataContainer.dataContainer - kvision + + + +kvision / pl.treksoft.kvision.data / DataContainer / dataContainer
+
+

dataContainer

+ +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/index.html b/docs/api/pl.treksoft.kvision.data/-data-container/index.html index 99155d7d..6474e482 100644 --- a/docs/api/pl.treksoft.kvision.data/-data-container/index.html +++ b/docs/api/pl.treksoft.kvision.data/-data-container/index.html @@ -18,7 +18,7 @@

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

Creates DataContainer bound to given data model.

@@ -287,6 +287,15 @@ +

invoke

+ + +open operator fun invoke(vararg children: Component): Container +

Operator function for adding children in a DSL style.

+ + + +

removeCssClass

@@ -354,5 +363,19 @@ +

Companion Object Functions

+ + + + + + + +
+

dataContainer

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

+
-- cgit