kvision / pl.treksoft.kvision.data

Package pl.treksoft.kvision.data

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

Types

(js)

BaseDataComponent

Base abstract class for creating observable data model.

abstract class BaseDataComponent : DataComponent
(js)

DataComponent

Base interface for observable data model.

interface DataComponent
(js)

DataContainer

A container class with support for mutable/observable data model.

class DataContainer<M, C : Component, CONT : Container> : Widget, Container, DataUpdatable
(js)

DataUpdatable

Interface for updatable container.

interface DataUpdatable
(js)

SorterType

Sorter types.

enum class SorterType

Functions

(js)

dataContainer

DSL builder extension function.

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 with VPanel default.

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>