TableState
data class TableState(var columnVisibility: VisibilityState = emptyMap(), var columnOrder: ColumnOrderState = emptyList(), var columnPinning: ColumnPinningState = ColumnPinningState(left = emptyList(), right = emptyList()), var rowPinning: RowPinningState = RowPinningState(top = emptyList(), bottom = emptyList()), var columnFilters: ColumnFiltersState = emptyList(), var globalFilter: Any? = null, var sorting: SortingState = emptyList(), var expanded: ExpandedState = emptyMap<String, Boolean>(), var grouping: GroupingState = emptyList(), var columnSizing: ColumnSizingState = emptyMap(), var columnSizingInfo: ColumnSizingInfoState = ColumnSizingInfoState(
startOffset = null,
startSize = null,
deltaOffset = null,
deltaPercentage = null,
isResizingColumn = false,
columnSizingStart = emptyList(),
), var pagination: PaginationState = PaginationState(pageIndex = 0, pageSize = 10), var rowSelection: RowSelectionState = emptyMap())
The unified table-state container. Carries one field per feature slice (columnVisibility, columnOrder, columnPinning, ...). Each field defaults to its slice's canonical empty value; an immutable InitialTableState supplied by the caller overlays them at table construction time.
Constructors
Link copied to clipboard
constructor(columnVisibility: VisibilityState = emptyMap(), columnOrder: ColumnOrderState = emptyList(), columnPinning: ColumnPinningState = ColumnPinningState(left = emptyList(), right = emptyList()), rowPinning: RowPinningState = RowPinningState(top = emptyList(), bottom = emptyList()), columnFilters: ColumnFiltersState = emptyList(), globalFilter: Any? = null, sorting: SortingState = emptyList(), expanded: ExpandedState = emptyMap<String, Boolean>(), grouping: GroupingState = emptyList(), columnSizing: ColumnSizingState = emptyMap(), columnSizingInfo: ColumnSizingInfoState = ColumnSizingInfoState(
startOffset = null,
startSize = null,
deltaOffset = null,
deltaPercentage = null,
isResizingColumn = false,
columnSizingStart = emptyList(),
), pagination: PaginationState = PaginationState(pageIndex = 0, pageSize = 10), rowSelection: RowSelectionState = emptyMap())
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Expansion state — either the literal true (all expanded) or a row-id map.
Link copied to clipboard
The active global filter value. Defaults to null (no global filter).
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Returns a copy of this state with the named slice replaced by value. Used by makeStateUpdater to assemble the new state after applying an Updater.