kvision / pl.treksoft.kvision.data / DataContainer / <init>

<init>

DataContainer(model: ObservableList<M>, binding: (Int) -> C, child: Container = VPanel(), init: DataContainer<M, C>.() -> Unit = null)

Creates DataContainer bound to given data model.

Parameters

M - base data model type

C - base component type

model - data model of type ObservableList

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.