State Store
class StateStore<T, I>(sortingPlanReducer: SortingPlanReducer) : RootStore<State>
Content copied to clipboard
Store for the column configuration that holds a State object. It does not manage the actual data of the table; this is done by RowSelectionStore!
Currently only one handler (sortingChanged) is offered, that calculates the new SortingPlan based upon the selected Column-Id and its Sorting strategy. The required SortingPlanReducer is used to to the actual calculation.
On top there are some helper functions, that produces the needed Flows of data for the different rendering aspects: One for the header, one for the rows and one for the cells of a row.
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open infix fun <E : Event, X : Element> DomListener<E, X>.handledBy(handler: Handler<Unit>)
Content copied to clipboard
open infix fun <E : Event, X : Element> DomListener<E, X>.handledBy(execute: suspend (E) -> Unit): Job
Content copied to clipboard
open infix fun <E : Event> WindowListener<E>.handledBy(handler: Handler<Unit>)
Content copied to clipboard
Link copied to clipboard
fun renderingHeaderData(component: DataTableComponent<T, I>): Flow<List<Pair<Column<T>, ColumnIdSorting>>>
Content copied to clipboard
Link copied to clipboard
fun renderingRowsData(component: DataTableComponent<T, I>, rowIdProvider: (T) -> I): Flow<Pair<List<IndexedValue<T>>, Map<I, List<Pair<Column<T>, IndexedValue<StatefulItem<T>>>>>>>
Content copied to clipboard