Data Table Component
open class DataTableComponent<T, I>(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
DataTableComponent
Link copied to clipboard
Types
Functions
columns
Link copied to clipboard
open override fun columns(styling: BoxParams.(IndexedValue<StatefulItem<T>>) -> Unit, expression: ColumnsContext<T>.() -> Unit)
Content copied to clipboard
header
Link copied to clipboard
open override fun header(styling: Style<BasicParams>, expression: HeaderContext.() -> Unit)
Content copied to clipboard
options
Link copied to clipboard
prependAdditionalColumns
Link copied to clipboard
open override fun prependAdditionalColumns(expression: ColumnsContext<T>.() -> Unit)
Content copied to clipboard
Properties
columns
Link copied to clipboard
events
Link copied to clipboard
open override val events: ComponentProperty<EventsContext<T, I>.() -> Unit>
Content copied to clipboard
header
Link copied to clipboard
options
Link copied to clipboard
selection
Link copied to clipboard
selectionStore
Link copied to clipboard