Package io.kvision.data

Base component and container class with data binding support for observable data model.

Types

BaseDataComponent
Link copied to clipboard
abstract class BaseDataComponent : DataComponent
Base abstract class for creating observable data model.
DataComponent
Link copied to clipboard
interface DataComponent
Base interface for observable data model.
DataContainer
Link copied to clipboard
class DataContainer<M, C : Component, CONT : Container>(model: MutableList<M>, factory: Container.(M, Int, MutableList<M>) -> C, container: CONT, containerAdd: CONT.(C, M) -> Unit?, filter: (M) -> Boolean?, sorter: (M) -> Comparable<*>??, sorterType: () -> SorterType, init: DataContainer<M, C, CONT>.() -> Unit?) : Widget, Container, DataUpdatable
A container class with support for mutable/observable data model.
DataUpdatable
Link copied to clipboard
interface DataUpdatable
Interface for updatable container.
SorterType
Link copied to clipboard
enum SorterType : Enum<SorterType>
Sorter types.

Functions

dataContainer
Link copied to clipboard
fun <M, C : Component> Container.dataContainer(model: MutableList<M>, factory: Container.(M, Int, MutableList<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.
fun <M, C : Component, CONT : Container> Container.dataContainer(model: MutableList<M>, factory: Container.(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): DataContainer<M, C, CONT>
DSL builder extension function.