TableState
Mutable state holder for a table instance.
Three clusters of that state live in holders of their own, reached through this one: columns (order, widths, auto-fit measurements), selection (focused row, checked rows, selected cell) and editing (edited row and column, edit callbacks). What shapes the data — sort, groupBy, filters — stays here, because it is what a table is asked for most and it belongs to the table as a whole rather than to one of the three.
The members those holders took over remain here as deprecated forwarders for one release, each naming its replacement, so existing call sites keep compiling; they are removed in the next major.
Properties
Column order, width overrides and the measurements auto-fit works from.
Edited row and column, and the consumer's edit callbacks.
The whole filter tree; always an AND group. Snapshot-backed: observe with snapshotFlow. Internal writes are normalized as setFilterExpression does.
Per-column filters: a mutable view of the first top-level condition of each column in filterExpression. Writes leave groups and nots untouched.
True while a non-null rowBlocks declaration is being ignored because groupBy is active. The two features describe incompatible structures over the same rows, so the library suppresses blocks instead of rendering both; this flag exists so consumers can surface that conflict in their own UI rather than have blocks vanish unexplained.
Tracks measured row heights in raw pixels for dynamic, precise scrolling.
Focused row, checked rows and the selected cell.
Current table width computed from visible columns and their widths. Automatically recalculates when column order, widths, or visibleColumns change.
The TableFilterNode.Unresolved leaves of filterExpression, in tree order; empty when the expression is resolved. While it is not empty, do not apply or send the filter at all, not even with these leaves left out. The table shows them only in the active filters row, so an app that hides the row must check this itself. Snapshot-backed: observe with snapshotFlow.
Functions
Replaces the tree. A root that is not an AND group becomes the single child of an AND root.
Record measured row height (in px) for index.