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>
component1
Link copied to clipboard
js
operator fun component1(): List<String>
component2
Link copied to clipboard
js
operator fun component2(): SortingPlan
copy
Link copied to clipboard
js
fun copy(order: List<String>, sortingPlan: SortingPlan): State
equals
Link copied to clipboard
js
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
js
open override fun hashCode(): Int
orderedColumnsWithSorting
Link copied to clipboard
js
fun <T> orderedColumnsWithSorting(columns: Map<String, Column<T>>): List<Pair<Column<T>, ColumnIdSorting>>
toString
Link copied to clipboard
js
open override fun toString(): String

Properties

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