From f23e74c2eb0cae2f6ce674881e86ab5d5659ad77 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Tue, 29 Jan 2019 23:41:38 +0100 Subject: API documentation for KVision 0.0.23 --- .../-data-container/-init-.html | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'api/pl.treksoft.kvision.data/-data-container/-init-.html') diff --git a/api/pl.treksoft.kvision.data/-data-container/-init-.html b/api/pl.treksoft.kvision.data/-data-container/-init-.html index 5fc34642..7bf3994d 100644 --- a/api/pl.treksoft.kvision.data/-data-container/-init-.html +++ b/api/pl.treksoft.kvision.data/-data-container/-init-.html @@ -8,24 +8,30 @@ kvision / pl.treksoft.kvision.data / DataContainer / <init>

<init>

- -DataContainer(model: ObservableList<M>, factory: (Int, M) -> C, filter: (Int, M) -> Boolean = null, mapping: (List<Pair<Int, M>>) -> List<Pair<Int, M>> = null, container: Container = VPanel(), init: DataContainer<M, C>.() -> Unit = null) + +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)

Creates DataContainer bound to given data model.

Parameters

M - data model type

C - visual component type

+

+CONT - container type

model - data model of type ObservableList

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

-

-mapping - a mapping function

-

-container - internal container (defaults to VPanel)

+

+sorter - a sorting function

+

+sorterType - a sorting type selection function

init - an initializer extension function

Constructor
-- cgit