Package-level declarations

Types

Link copied to clipboard
sealed interface ColumnWidthAction

Column width change request used by resizing logic.

Link copied to clipboard
data class SortState<C>(val column: C, val order: SortOrder)

Current sort state: which column is sorted and in which order.

Link copied to clipboard

Mutable state holder for a table instance. Manages column order/widths, sorting, filters and selection.

Functions

Link copied to clipboard
inline fun <T, R : Any> Iterable<T>.mapNotNullToImmutable(transform: (T) -> R?): ImmutableList<R>
Link copied to clipboard
fun <C> rememberTableState(columns: ImmutableList<C>, initialSort: SortState<C>? = null, initialOrder: ImmutableList<C> = columns, initialWidths: ImmutableMap<C, Dp> = persistentMapOf(), settings: TableSettings = TableSettings(), dimensions: TableDimensions = TableDefaults.standardDimensions()): TableState<C>

Remember and create a TableState tied to the composition. Initial parameters are used only once; runtime mutations will not recreate the state.