API reference: @salmonui/pivot-table
PivotStateinterface
import type { PivotState } from '@salmonui/pivot-table';interface PivotState {
readonly result: PivotResult | null;
readonly model: PivotModel;
readonly draft: PivotModel | null;
readonly status: PivotComputeStatus;
readonly error: Error | null;
readonly fields: readonly PivotFieldInfo[];
readonly selection: readonly string[];
readonly dialog: PivotDialogState | null;
}
Snapshot of the controller store; every field keeps its identity until it changes.
| Name | Signature | Description |
|---|---|---|
result | readonly result: PivotResult | null; | |
model | readonly model: PivotModel; | |
draft | readonly draft: PivotModel | null; | Draft model of a field list with |
status | readonly status: PivotComputeStatus; | |
error | readonly error: Error | null; | |
fields | readonly fields: readonly PivotFieldInfo[]; | |
selection | readonly selection: readonly string[]; | Selected cells as |
dialog | readonly dialog: PivotDialogState | null; | Open dialog of the pivot parts (field list popup, editors, drill through), or null. |