fun <M, C : Component, CONT : Container> Container.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): DataContainer<M, C, CONT>
DSL builder extension function.
It takes the same parameters as the constructor of the built component.
fun <M, C : Component> Container.dataContainer(model: ObservableList<M>, factory: (M, Int, ObservableList<M>) -> C, containerAdd: VPanel.(C, M) -> Unit = null, filter: (M) -> Boolean = null, sorter: (M) -> Comparable<*>? = null, sorterType: () -> SorterType = { SorterType.ASC }, init: DataContainer<M, C, VPanel>.() -> Unit = null): DataContainer<M, C, VPanel>
DSL builder extension function with VPanel default.
It takes the same parameters as the constructor of the built component.