State

data class State(val order: List<String>, val 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

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

Functions

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

Properties

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