@kanunilabs/pivotgrid-react / PivotControllerState
Interface: PivotControllerState<TRow>
Full observable state of the pivot controller — consumed by UI frameworks.
Type Parameters
TRow
TRow = any
Properties
activeReportId
activeReportId:
string|null
buildProgress?
optionalbuildProgress?:number
Monotonic engine build progress shown by UI loaders. 0..100, simulated when exact worker progress is unavailable.
canRedoLayout?
optionalcanRedoLayout?:boolean
redoLayout() has a step to put back (B.43).
canUndoLayout?
optionalcanUndoLayout?:boolean
undoLayout() has a step to take back (B.43).
columnWidths
columnWidths:
Record<string,number>
Column widths in pixels that the user dragged or setColumnWidths wrote.
Persisted with the layout (stateStoring). Keys:
row-<i>— row-header columni, counted from the outer row field (row-0); in the tree layoutrow-0is the single row-header column. WithdataFieldPosition: 'rows'the column of measure names comes last, atrow-<number of row-header columns>.leaf-<i>— data columni, counted left to right across the whole crosstab, totals included.
A column with no entry is painted at defaultColumnWidths (150 for row
headers, 95 for data columns, when that is not set either). Row-header
widths may be painted narrower than stored when the frozen block would
leave the data less than its share of the viewport.
drag
drag:
PivotDragIntentState
engineError
engineError:
Error|null
engineResult
engineResult:
PivotEngineResult|null
expandedColPaths
expandedColPaths:
Set<string>
expandedPaths
expandedPaths:
Set<string>
fields
fields:
PivotField<TRow,PivotCellTemplate,any>[]
gridId
gridId:
string
isBuilding
isBuilding:
boolean
The loader is up: true from the moment a change is scheduled until a short
moment (~120 ms) after its result is shown, so the progress bar can finish.
To know whether engineResult is current, read isComputing.
isComputing?
optionalisComputing?:boolean
A change (data, fields, a filter, an expand) is waiting or being computed,
so engineResult is not the result for the current state yet. False once
the new result is in engineResult, or the computation failed (B.31).
exportData waits for it; onComputingChange reports it.
layout
layout:
PivotLayoutState
noData?
optionalnoData?:boolean
Nothing to compute: the pivot has no rows (or no fields) and none are
queued with applyTransactionAsync. The renderers show the emptyData
text instead of the loader (B.30). Always false with a serverSource,
and while the loading option is on.
reports
reports:
PivotReport[]
searchText?
optionalsearchText?:string
The quick search (setSearchText): only the row members whose caption
(as the header draws it — a month by its name) contains it are shown,
with the members above them. Not saved with the
layout or in reports; totals still count every row.
selectionStats
selectionStats:
PivotSelectionStats|null