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

<init>

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

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)

Constructor
Creates DataContainer bound to given data model.