AdaptablePersistentState
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.
export interfaceProperties
| Property | Type | Description |
|---|---|---|
| Alert | AlertState | Alert definitions. Each rule, schedule or data-change alert fires when its condition is met. |
| Application | ApplicationState | Developer-owned key/value entries, stored with the rest of AdapTable State. Set from Initial State. There is no UI for editing these entries. |
| CalculatedColumn | CalculatedColumnState | Calculated Columns. Each column's Expression is evaluated to produce the cell value. |
| Charting | ChartingState | Named charts. Each definition wraps an AG Chart model. |
| CustomSort | CustomSortState | Custom Sorts. A column listed here sorts by the given value order instead of the default comparison. |
| Dashboard | DashboardState | Dashboard: tabs, which toolbars are on each tab, and whether the Dashboard is collapsed, floating or hidden. |
| Export | ExportState | Reports and report schedules used by Export. |
| FlashingCell | FlashingCellState | Flashing Cell rules. Matching cells or rows flash when their data changes. |
| FormatColumn | FormatColumnState | Format Columns: styles and display formats, applied to a column scope, optionally when a Rule is true. |
| FreeTextColumn | FreeTextColumnState | Free Text Columns. Cell values are stored here, not in the grid's data source. |
| Layout | LayoutState | Layouts: column visibility, order, sizing, sorting, grouping, aggregations, filters and the current Layout. Initial State must include a Layout unless layoutOptions.autoCreateLayout creates one. |
| NamedQuery | NamedQueryState | Named Queries. An expression saved here can be referred to by name from other modules. |
| Note | NoteState | Cell Notes. A Note is one piece of text on a cell, separate from Comments and from Free Text Columns. |
| PlusMinus | PlusMinusState | Plus Minus nudges. Each nudge names a column and how much + / - (or a custom shortcut) changes the cell. |
| QuickSearch | QuickSearchState | Quick Search text, and whether matches are highlighted or non-matching rows are filtered out. |
| Shortcut | ShortcutState | Keyboard shortcuts that write a value into the edited cell, used to speed up entry and block mistyped values. |
| StatusBar | StatusBarState | Status Bar panels and the order they appear in. |
| StyledColumn | StyledColumnState | Styled Columns: badges, bars, sparklines, gradients and the other cell renderers that are not a Format Column. |
| TeamSharing | TeamSharingState | 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. |
| Theme | ThemeState | Current theme (light, dark or os) and which shipped themes are offered. |
| ToolPanel | ToolPanelState | Tool Panel: which module controls are visible and their order. |
| UserInterface | UserInterfaceState | Which 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.
Alert: AlertState;Property Value
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.
Application: ApplicationState;Property Value
CalculatedColumn
Calculated Columns. Each column's Expression is evaluated to produce the cell value.
CalculatedColumn: CalculatedColumnState;Property Value
Charting
Named charts. Each definition wraps an AG Chart model.
Charting: ChartingState;Property Value
CustomSort
Custom Sorts. A column listed here sorts by the given value order instead of the default comparison.
CustomSort: CustomSortState;Property Value
Dashboard
Dashboard: tabs, which toolbars are on each tab, and whether the Dashboard is collapsed, floating or hidden.
Dashboard: DashboardState;Property Value
Export
Reports and report schedules used by Export.
Export: ExportState;Property Value
FlashingCell
Flashing Cell rules. Matching cells or rows flash when their data changes.
FlashingCell: FlashingCellState;Property Value
FormatColumn
Format Columns: styles and display formats, applied to a column scope, optionally when a Rule is true.
FormatColumn: FormatColumnState;Property Value
FreeTextColumn
Free Text Columns. Cell values are stored here, not in the grid's data source.
FreeTextColumn: FreeTextColumnState;Property Value
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.
Layout: LayoutState;Property Value
NamedQuery
Named Queries. An expression saved here can be referred to by name from other modules.
NamedQuery: NamedQueryState;Property Value
Note
Cell Notes. A Note is one piece of text on a cell, separate from Comments and from Free Text Columns.
Note: NoteState;Property Value
PlusMinus
Plus Minus nudges. Each nudge names a column and how much + / - (or a custom shortcut) changes the cell.
PlusMinus: PlusMinusState;Property Value
QuickSearch
Quick Search text, and whether matches are highlighted or non-matching rows are filtered out.
QuickSearch: QuickSearchState;Property Value
Shortcut
Keyboard shortcuts that write a value into the edited cell, used to speed up entry and block mistyped values.
Shortcut: ShortcutState;Property Value
StatusBar
Status Bar panels and the order they appear in.
StatusBar: StatusBarState;Property Value
StyledColumn
Styled Columns: badges, bars, sparklines, gradients and the other cell renderers that are not a Format Column.
StyledColumn: StyledColumnState;Property Value
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.
TeamSharing: TeamSharingState;Property Value
Theme
Current theme (light, dark or os) and which shipped themes are offered.
Theme: ThemeState;Property Value
ToolPanel
Tool Panel: which module controls are visible and their order.
ToolPanel: ToolPanelState;Property Value
UserInterface
Which AdapTable UI surfaces are shown: Dashboard, Tool Panel, Status Bar, column menu, context menu and the rest.
UserInterface: UserInterfaceState;