# AdaptablePersistentState

Canonical page: https://www.adaptabletools.com/docs/reference/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&#39;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.

```ts title="TypeScript"
export interface AdaptablePersistentState 
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [Alert](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#alert) | [`AlertState`](https://www.adaptabletools.com/docs/reference/alertstate.md) | Alert definitions. Each rule, schedule or data-change alert fires when its condition is met. |
| [Application](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#application) | [`ApplicationState`](https://www.adaptabletools.com/docs/reference/applicationstate.md) | Developer-owned key/value entries, stored with the rest of AdapTable State.<br/><br/>Set from Initial State. There is no UI for editing these entries. |
| [CalculatedColumn](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#calculatedcolumn) | [`CalculatedColumnState`](https://www.adaptabletools.com/docs/reference/calculatedcolumnstate.md) | Calculated Columns. Each column&#39;s `Expression` is evaluated to produce the cell value. |
| [Charting](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#charting) | [`ChartingState`](https://www.adaptabletools.com/docs/reference/chartingstate.md) | Named charts. Each definition wraps an AG Chart model. |
| [CustomSort](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#customsort) | [`CustomSortState`](https://www.adaptabletools.com/docs/reference/customsortstate.md) | Custom Sorts. A column listed here sorts by the given value order instead of the default comparison. |
| [Dashboard](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#dashboard) | [`DashboardState`](https://www.adaptabletools.com/docs/reference/dashboardstate.md) | Dashboard: tabs, which toolbars are on each tab, and whether the Dashboard is collapsed, floating or hidden. |
| [Export](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#export) | [`ExportState`](https://www.adaptabletools.com/docs/reference/exportstate.md) | Reports and report schedules used by Export. |
| [FlashingCell](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#flashingcell) | [`FlashingCellState`](https://www.adaptabletools.com/docs/reference/flashingcellstate.md) | Flashing Cell rules. Matching cells or rows flash when their data changes. |
| [FormatColumn](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#formatcolumn) | [`FormatColumnState`](https://www.adaptabletools.com/docs/reference/formatcolumnstate.md) | Format Columns: styles and display formats, applied to a column scope, optionally when a `Rule` is true. |
| [FreeTextColumn](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#freetextcolumn) | [`FreeTextColumnState`](https://www.adaptabletools.com/docs/reference/freetextcolumnstate.md) | Free Text Columns. Cell values are stored here, not in the grid&#39;s data source. |
| [Layout](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#layout) | [`LayoutState`](https://www.adaptabletools.com/docs/reference/layoutstate.md) | Layouts: column visibility, order, sizing, sorting, grouping, aggregations, filters and the current Layout.<br/><br/>Initial State must include a Layout unless `layoutOptions.autoCreateLayout` creates one. |
| [NamedQuery](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#namedquery) | [`NamedQueryState`](https://www.adaptabletools.com/docs/reference/namedquerystate.md) | Named Queries. An expression saved here can be referred to by name from other modules. |
| [Note](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#note) | [`NoteState`](https://www.adaptabletools.com/docs/reference/notestate.md) | Cell Notes. A Note is one piece of text on a cell, separate from Comments and from Free Text Columns. |
| [PlusMinus](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#plusminus) | [`PlusMinusState`](https://www.adaptabletools.com/docs/reference/plusminusstate.md) | Plus Minus nudges. Each nudge names a column and how much `+` / `-` (or a custom shortcut) changes the cell. |
| [QuickSearch](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#quicksearch) | [`QuickSearchState`](https://www.adaptabletools.com/docs/reference/quicksearchstate.md) | Quick Search text, and whether matches are highlighted or non-matching rows are filtered out. |
| [Shortcut](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#shortcut) | [`ShortcutState`](https://www.adaptabletools.com/docs/reference/shortcutstate.md) | Keyboard shortcuts that write a value into the edited cell, used to speed up entry and block mistyped values. |
| [StatusBar](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#statusbar) | [`StatusBarState`](https://www.adaptabletools.com/docs/reference/statusbarstate.md) | Status Bar panels and the order they appear in. |
| [StyledColumn](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#styledcolumn) | [`StyledColumnState`](https://www.adaptabletools.com/docs/reference/styledcolumnstate.md) | Styled Columns: badges, bars, sparklines, gradients and the other cell renderers that are not a Format Column. |
| [TeamSharing](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#teamsharing) | [`TeamSharingState`](https://www.adaptabletools.com/docs/reference/teamsharingstate.md) | Team Sharing entities. Persisted, but not supplied in Initial State.<br/><br/>`Snapshot` is a one-time copy. `Active` stays linked and its `Revision` increases when the shared object changes. |
| [Theme](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#theme) | [`ThemeState`](https://www.adaptabletools.com/docs/reference/themestate.md) | Current theme (`light`, `dark` or `os`) and which shipped themes are offered. |
| [ToolPanel](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#toolpanel) | [`ToolPanelState`](https://www.adaptabletools.com/docs/reference/toolpanelstate.md) | Tool Panel: which module controls are visible and their order. |
| [UserInterface](https://www.adaptabletools.com/docs/reference/adaptablepersistentstate.md#userinterface) | [`UserInterfaceState`](https://www.adaptabletools.com/docs/reference/userinterfacestate.md) | 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.

```ts title="TypeScript"
Alert: AlertState;
```

###### Property Value

[`AlertState`](https://www.adaptabletools.com/docs/reference/alertstate.md)

### 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.

```ts title="TypeScript"
Application: ApplicationState;
```

###### Property Value

[`ApplicationState`](https://www.adaptabletools.com/docs/reference/applicationstate.md)

### CalculatedColumn

Calculated Columns. Each column&#39;s `Expression` is evaluated to produce the cell value.

```ts title="TypeScript"
CalculatedColumn: CalculatedColumnState;
```

###### Property Value

[`CalculatedColumnState`](https://www.adaptabletools.com/docs/reference/calculatedcolumnstate.md)

### Charting

Named charts. Each definition wraps an AG Chart model.

```ts title="TypeScript"
Charting: ChartingState;
```

###### Property Value

[`ChartingState`](https://www.adaptabletools.com/docs/reference/chartingstate.md)

### CustomSort

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

```ts title="TypeScript"
CustomSort: CustomSortState;
```

###### Property Value

[`CustomSortState`](https://www.adaptabletools.com/docs/reference/customsortstate.md)

### Dashboard

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

```ts title="TypeScript"
Dashboard: DashboardState;
```

###### Property Value

[`DashboardState`](https://www.adaptabletools.com/docs/reference/dashboardstate.md)

### Export

Reports and report schedules used by Export.

```ts title="TypeScript"
Export: ExportState;
```

###### Property Value

[`ExportState`](https://www.adaptabletools.com/docs/reference/exportstate.md)

### FlashingCell

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

```ts title="TypeScript"
FlashingCell: FlashingCellState;
```

###### Property Value

[`FlashingCellState`](https://www.adaptabletools.com/docs/reference/flashingcellstate.md)

### FormatColumn

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

```ts title="TypeScript"
FormatColumn: FormatColumnState;
```

###### Property Value

[`FormatColumnState`](https://www.adaptabletools.com/docs/reference/formatcolumnstate.md)

### FreeTextColumn

Free Text Columns. Cell values are stored here, not in the grid&#39;s data source.

```ts title="TypeScript"
FreeTextColumn: FreeTextColumnState;
```

###### Property Value

[`FreeTextColumnState`](https://www.adaptabletools.com/docs/reference/freetextcolumnstate.md)

### 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.

```ts title="TypeScript"
Layout: LayoutState;
```

###### Property Value

[`LayoutState`](https://www.adaptabletools.com/docs/reference/layoutstate.md)

### NamedQuery

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

```ts title="TypeScript"
NamedQuery: NamedQueryState;
```

###### Property Value

[`NamedQueryState`](https://www.adaptabletools.com/docs/reference/namedquerystate.md)

### Note

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

```ts title="TypeScript"
Note: NoteState;
```

###### Property Value

[`NoteState`](https://www.adaptabletools.com/docs/reference/notestate.md)

### PlusMinus

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

```ts title="TypeScript"
PlusMinus: PlusMinusState;
```

###### Property Value

[`PlusMinusState`](https://www.adaptabletools.com/docs/reference/plusminusstate.md)

### QuickSearch

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

```ts title="TypeScript"
QuickSearch: QuickSearchState;
```

###### Property Value

[`QuickSearchState`](https://www.adaptabletools.com/docs/reference/quicksearchstate.md)

### Shortcut

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

```ts title="TypeScript"
Shortcut: ShortcutState;
```

###### Property Value

[`ShortcutState`](https://www.adaptabletools.com/docs/reference/shortcutstate.md)

### StatusBar

Status Bar panels and the order they appear in.

```ts title="TypeScript"
StatusBar: StatusBarState;
```

###### Property Value

[`StatusBarState`](https://www.adaptabletools.com/docs/reference/statusbarstate.md)

### StyledColumn

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

```ts title="TypeScript"
StyledColumn: StyledColumnState;
```

###### Property Value

[`StyledColumnState`](https://www.adaptabletools.com/docs/reference/styledcolumnstate.md)

### 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.

```ts title="TypeScript"
TeamSharing: TeamSharingState;
```

###### Property Value

[`TeamSharingState`](https://www.adaptabletools.com/docs/reference/teamsharingstate.md)

### Theme

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

```ts title="TypeScript"
Theme: ThemeState;
```

###### Property Value

[`ThemeState`](https://www.adaptabletools.com/docs/reference/themestate.md)

### ToolPanel

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

```ts title="TypeScript"
ToolPanel: ToolPanelState;
```

###### Property Value

[`ToolPanelState`](https://www.adaptabletools.com/docs/reference/toolpanelstate.md)

### UserInterface

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

```ts title="TypeScript"
UserInterface: UserInterfaceState;
```

###### Property Value

[`UserInterfaceState`](https://www.adaptabletools.com/docs/reference/userinterfacestate.md)
