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 --- .../-data-container/-init-.html | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 api1/pl.treksoft.kvision.data/-data-container/-init-.html (limited to 'api1/pl.treksoft.kvision.data/-data-container/-init-.html') diff --git a/api1/pl.treksoft.kvision.data/-data-container/-init-.html b/api1/pl.treksoft.kvision.data/-data-container/-init-.html new file mode 100644 index 00000000..8e9b58d5 --- /dev/null +++ b/api1/pl.treksoft.kvision.data/-data-container/-init-.html @@ -0,0 +1,40 @@ + + + +DataContainer.<init> - kvision + + + +kvision / pl.treksoft.kvision.data / DataContainer / <init>
+
+

<init>

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

Creates DataContainer bound to given data model.

+

Parameters

+

+M - data model type

+

+C - visual component type

+

+CONT - container type

+

+model - data model of type MutableList

+

+factory - a function which creates component C from data model at given index

+

+container - internal container

+

+containerAdd - function to add component C to the internal container CONT

+

+filter - a filtering function

+

+sorter - a sorting function

+

+sorterType - a sorting type selection function

+

+init - an initializer extension function

+

Constructor
+Creates DataContainer bound to given data model.

+ + -- cgit