State

data class State(order: List<String>, sortingPlan: SortingPlan)

Central class for the dynamic aspects of the column configuration, so the actual state of column meta data in contrast to the row data!

Currently the order of the columns (which includes visibility!) and the SortingPlan are managed.

There are two helper methods to ease the State handling:

Constructors

State
Link copied to clipboard
js
fun State(order: List<String>, sortingPlan: SortingPlan)

Functions

columnSortingPlan
Link copied to clipboard
js
fun <T> columnSortingPlan(columns: Map<String, Column<T>>): ColumnSortingPlan<T>
orderedColumnsWithSorting
Link copied to clipboard
js
fun <T> orderedColumnsWithSorting(columns: Map<String, Column<T>>): List<Pair<Column<T>, ColumnIdSorting>>

Properties

order
Link copied to clipboard
js
val order: List<String>
sortingPlan
Link copied to clipboard
js
val sortingPlan: SortingPlan