Documentation

@kanunilabs/pivotgrid-react


@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?

optional buildProgress?: number

Monotonic engine build progress shown by UI loaders. 0..100, simulated when exact worker progress is unavailable.


columnWidths

columnWidths: Record<string, number>


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


importPreview

importPreview: PivotImportPreviewState | null

Pending import awaiting preview/column-mapping review (null when none).


importStatus

importStatus: PivotImportStatus


isBuilding

isBuilding: boolean


layout

layout: PivotLayoutState


reports

reports: PivotReport[]


selectionStats

selectionStats: PivotSelectionStats | null