Stylish Data Table State
data class StylishDataTableState(val filterText: String = "", val page: Int = 1, val pageSize: Int? = null, val sortStates: List<StylishDataTableSortState> = emptyList(), val selectedKeys: Set<Any> = emptySet(), val expandedKeys: Set<Any> = emptySet(), val visibleColumnIds: Set<String> = emptySet(), val columnOrder: List<String> = emptyList(), val columnWidths: Map<String, Dp> = emptyMap(), val pinnedColumnIds: Set<String> = emptySet(), val freezePinnedColumns: Boolean = false, val focusedCell: StylishDataTableCellPosition? = null)
Headless, transport-neutral state for StylishDataTable.
The state model keeps query, selection, expansion, layout, and keyboard focus separate from rendering. Hosts can persist it, reduce it from REST/GraphQL events, or share it with a native screen without depending on Compose runtime state.
Constructors
Link copied to clipboard
constructor(filterText: String = "", page: Int = 1, pageSize: Int? = null, sortStates: List<StylishDataTableSortState> = emptyList(), selectedKeys: Set<Any> = emptySet(), expandedKeys: Set<Any> = emptySet(), visibleColumnIds: Set<String> = emptySet(), columnOrder: List<String> = emptyList(), columnWidths: Map<String, Dp> = emptyMap(), pinnedColumnIds: Set<String> = emptySet(), freezePinnedColumns: Boolean = false, focusedCell: StylishDataTableCellPosition? = null)