AdaptablePersistentState

View as Markdown

AdapTable State that is persisted.

This is the object passed to stateOptions.loadState, saveState, persistState and applyState. Supply the same section names in InitialState. Initial State is applied only when nothing has been persisted yet for this grid; after that, raising a section's Revision is how a new Initial State updates that section.

TeamSharing is persisted, but it is not part of Initial State. Shares are created at run time.

TypeScript
export interface

Properties

PropertyTypeDescription
AlertAlertStateAlert definitions. Each rule, schedule or data-change alert fires when its condition is met.
ApplicationApplicationStateDeveloper-owned key/value entries, stored with the rest of AdapTable State.

Set from Initial State. There is no UI for editing these entries.
CalculatedColumnCalculatedColumnStateCalculated Columns. Each column's Expression is evaluated to produce the cell value.
ChartingChartingStateNamed charts. Each definition wraps an AG Chart model.
CustomSortCustomSortStateCustom Sorts. A column listed here sorts by the given value order instead of the default comparison.
DashboardDashboardStateDashboard: tabs, which toolbars are on each tab, and whether the Dashboard is collapsed, floating or hidden.
ExportExportStateReports and report schedules used by Export.
FlashingCellFlashingCellStateFlashing Cell rules. Matching cells or rows flash when their data changes.
FormatColumnFormatColumnStateFormat Columns: styles and display formats, applied to a column scope, optionally when a Rule is true.
FreeTextColumnFreeTextColumnStateFree Text Columns. Cell values are stored here, not in the grid's data source.
LayoutLayoutStateLayouts: column visibility, order, sizing, sorting, grouping, aggregations, filters and the current Layout.

Initial State must include a Layout unless layoutOptions.autoCreateLayout creates one.
NamedQueryNamedQueryStateNamed Queries. An expression saved here can be referred to by name from other modules.
NoteNoteStateCell Notes. A Note is one piece of text on a cell, separate from Comments and from Free Text Columns.
PlusMinusPlusMinusStatePlus Minus nudges. Each nudge names a column and how much + / - (or a custom shortcut) changes the cell.
QuickSearchQuickSearchStateQuick Search text, and whether matches are highlighted or non-matching rows are filtered out.
ShortcutShortcutStateKeyboard shortcuts that write a value into the edited cell, used to speed up entry and block mistyped values.
StatusBarStatusBarStateStatus Bar panels and the order they appear in.
StyledColumnStyledColumnStateStyled Columns: badges, bars, sparklines, gradients and the other cell renderers that are not a Format Column.
TeamSharingTeamSharingStateTeam Sharing entities. Persisted, but not supplied in Initial State.

Snapshot is a one-time copy. Active stays linked and its Revision increases when the shared object changes.
ThemeThemeStateCurrent theme (light, dark or os) and which shipped themes are offered.
ToolPanelToolPanelStateTool Panel: which module controls are visible and their order.
UserInterfaceUserInterfaceStateWhich AdapTable UI surfaces are shown: Dashboard, Tool Panel, Status Bar, column menu, context menu and the rest.

Property Details

Alert

Alert definitions. Each rule, schedule or data-change alert fires when its condition is met.

TypeScript
Alert: AlertState;
Property Value

AlertState

Application

Developer-owned key/value entries, stored with the rest of AdapTable State.

Set from Initial State. There is no UI for editing these entries.

TypeScript
Application: ApplicationState;
Property Value

ApplicationState

CalculatedColumn

Calculated Columns. Each column's Expression is evaluated to produce the cell value.

TypeScript
CalculatedColumn: CalculatedColumnState;
Property Value

CalculatedColumnState

Charting

Named charts. Each definition wraps an AG Chart model.

TypeScript
Charting: ChartingState;
Property Value

ChartingState

CustomSort

Custom Sorts. A column listed here sorts by the given value order instead of the default comparison.

TypeScript
CustomSort: CustomSortState;
Property Value

CustomSortState

Dashboard

Dashboard: tabs, which toolbars are on each tab, and whether the Dashboard is collapsed, floating or hidden.

TypeScript
Dashboard: DashboardState;
Property Value

DashboardState

Export

Reports and report schedules used by Export.

TypeScript
Export: ExportState;
Property Value

ExportState

FlashingCell

Flashing Cell rules. Matching cells or rows flash when their data changes.

TypeScript
FlashingCell: FlashingCellState;
Property Value

FlashingCellState

FormatColumn

Format Columns: styles and display formats, applied to a column scope, optionally when a Rule is true.

TypeScript
FormatColumn: FormatColumnState;
Property Value

FormatColumnState

FreeTextColumn

Free Text Columns. Cell values are stored here, not in the grid's data source.

TypeScript
FreeTextColumn: FreeTextColumnState;
Property Value

FreeTextColumnState

Layout

Layouts: column visibility, order, sizing, sorting, grouping, aggregations, filters and the current Layout.

Initial State must include a Layout unless layoutOptions.autoCreateLayout creates one.

TypeScript
Layout: LayoutState;
Property Value

LayoutState

NamedQuery

Named Queries. An expression saved here can be referred to by name from other modules.

TypeScript
NamedQuery: NamedQueryState;
Property Value

NamedQueryState

Note

Cell Notes. A Note is one piece of text on a cell, separate from Comments and from Free Text Columns.

TypeScript
Note: NoteState;
Property Value

NoteState

PlusMinus

Plus Minus nudges. Each nudge names a column and how much + / - (or a custom shortcut) changes the cell.

TypeScript
PlusMinus: PlusMinusState;
Property Value

PlusMinusState

QuickSearch

Quick Search text, and whether matches are highlighted or non-matching rows are filtered out.

TypeScript
QuickSearch: QuickSearchState;
Property Value

QuickSearchState

Shortcut

Keyboard shortcuts that write a value into the edited cell, used to speed up entry and block mistyped values.

TypeScript
Shortcut: ShortcutState;
Property Value

ShortcutState

StatusBar

Status Bar panels and the order they appear in.

TypeScript
StatusBar: StatusBarState;
Property Value

StatusBarState

StyledColumn

Styled Columns: badges, bars, sparklines, gradients and the other cell renderers that are not a Format Column.

TypeScript
StyledColumn: StyledColumnState;
Property Value

StyledColumnState

TeamSharing

Team Sharing entities. Persisted, but not supplied in Initial State.

Snapshot is a one-time copy. Active stays linked and its Revision increases when the shared object changes.

TypeScript
TeamSharing: TeamSharingState;
Property Value

TeamSharingState

Theme

Current theme (light, dark or os) and which shipped themes are offered.

TypeScript
Theme: ThemeState;
Property Value

ThemeState

ToolPanel

Tool Panel: which module controls are visible and their order.

TypeScript
ToolPanel: ToolPanelState;
Property Value

ToolPanelState

UserInterface

Which AdapTable UI surfaces are shown: Dashboard, Tool Panel, Status Bar, column menu, context menu and the rest.

TypeScript
UserInterface: UserInterfaceState;
Property Value

UserInterfaceState