Data Table Component
open class DataTableComponent<T, I>(val dataStore: RootStore<List<T>>, rowIdProvider: (T) -> I) : Component<Unit> , DataTableContext<T, I>
Content copied to clipboard
This class implements the core of the data table.
It handles:
the rendering of the table (see all
`render`prefixed methods)the configuration (with sub-classes) and its DSL by delegation via DataTableContext
the state management like the current sorting or ordering of the columns with an internal store and lots of helper components like the whole infrastructure around the SortingPlan
the selection of row(s) with an internal store and the usage of SelectionStrategy implementations
the styling via theme and ad hoc definitions within the table column and header declarations
See also
Constructors
Types
Functions
Link copied to clipboard
open override fun columns(styling: BoxParams.(IndexedValue<StatefulItem<T>>) -> Unit, expression: ColumnsContext<T>.() -> Unit)
Content copied to clipboard
Link copied to clipboard
open override fun header(styling: Style<BasicParams>, expression: HeaderContext.() -> Unit)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun prependAdditionalColumns(expression: ColumnsContext<T>.() -> Unit)
Content copied to clipboard
Properties
Link copied to clipboard
open override val events: ComponentProperty<EventsContext<T, I>.() -> Unit>
Content copied to clipboard