# InitialState

Canonical page: https://www.adaptabletools.com/docs/reference/initialstate

Initial Adaptable State which is populated at design-time and used to create Adaptable State; must include at least one Layout (unless autoCreateLayout is set)

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

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [Alert](https://www.adaptabletools.com/docs/reference/initialstate.md#alert) | [`AlertState`](https://www.adaptabletools.com/docs/reference/alertstate.md) | Collection of `AlertDefinitions` which will fire Alerts when the rule is met |
| [Application](https://www.adaptabletools.com/docs/reference/initialstate.md#application) | [`ApplicationState`](https://www.adaptabletools.com/docs/reference/applicationstate.md) | Empty state section (only populated at Design Time) available for User to store their own data with the rest of AdapTable state. |
| [CalculatedColumn](https://www.adaptabletools.com/docs/reference/initialstate.md#calculatedcolumn) | [`CalculatedColumnState`](https://www.adaptabletools.com/docs/reference/calculatedcolumnstate.md) | Collection of *CalculatedColumn* objects that will display a value based on other cells in the row (using a Calculated Column Expression) |
| [Charting](https://www.adaptabletools.com/docs/reference/initialstate.md#charting) | [`ChartingState`](https://www.adaptabletools.com/docs/reference/chartingstate.md) | Saved charts. AG Grid charts are `ChartDefinitions` (`Name` and `Model`). Application charts are `ExternalChartDefinitions` (`Name` and `Data`). |
| [CustomSort](https://www.adaptabletools.com/docs/reference/initialstate.md#customsort) | [`CustomSortState`](https://www.adaptabletools.com/docs/reference/customsortstate.md) | Collection of *Custom Sort* objects to allow some columns to be sorted in non-standard (e.g. non alphabetical) ways |
| [Dashboard](https://www.adaptabletools.com/docs/reference/initialstate.md#dashboard) | [`DashboardState`](https://www.adaptabletools.com/docs/reference/dashboardstate.md) | Large series of properties to give users full control over the look and feel of the *Dashboard* - the section above the grid with toolbars and buttons |
| [Export](https://www.adaptabletools.com/docs/reference/initialstate.md#export) | [`ExportState`](https://www.adaptabletools.com/docs/reference/exportstate.md) | Collection of *Report* objects, together with name of the Current Report, as part of AdapTable export Module |
| [FlashingCell](https://www.adaptabletools.com/docs/reference/initialstate.md#flashingcell) | [`FlashingCellState`](https://www.adaptabletools.com/docs/reference/flashingcellstate.md) | Flashing Cell definitions. Each one names a column scope and a boolean rule, and flashes a cell, a row, or an aggregated cell. |
| [FormatColumn](https://www.adaptabletools.com/docs/reference/initialstate.md#formatcolumn) | [`FormatColumnState`](https://www.adaptabletools.com/docs/reference/formatcolumnstate.md) | Format Columns. Each one colours cells, changes how values are displayed, or both, for a column scope. Omit `Rule` to apply it on every row. |
| [FreeTextColumn](https://www.adaptabletools.com/docs/reference/initialstate.md#freetextcolumn) | [`FreeTextColumnState`](https://www.adaptabletools.com/docs/reference/freetextcolumnstate.md) | Collection of *FreeText* objects that define user-owned columns whose cell values are stored in Adaptable State (not the grid DataSource). Use for editable per-row fields such as ops notes, flags, or codes — distinct from cell-level Notes and Comments. |
| [Layout](https://www.adaptabletools.com/docs/reference/initialstate.md#layout) | [`LayoutState`](https://www.adaptabletools.com/docs/reference/layoutstate.md) | Collection of *Layouts* to name (and manage) sets of column visibility, order, grouping, sorts, aggregations, filters etc.<br/>Required unless `layoutOptions.autoCreateLayout` is set. |
| [NamedQuery](https://www.adaptabletools.com/docs/reference/initialstate.md#namedquery) | [`NamedQueryState`](https://www.adaptabletools.com/docs/reference/namedquerystate.md) | Named Queries other expressions can call with `QUERY('Name')`. A boolean query can be a Grid Filter or an Alert rule. |
| [Note](https://www.adaptabletools.com/docs/reference/initialstate.md#note) | [`NoteState`](https://www.adaptabletools.com/docs/reference/notestate.md) | Notes. One piece of text on one cell, located by primary key and column id. |
| [PlusMinus](https://www.adaptabletools.com/docs/reference/initialstate.md#plusminus) | [`PlusMinusState`](https://www.adaptabletools.com/docs/reference/plusminusstate.md) | Plus Minus module: nudge rules. Optional `IncrementKey` / `DecrementKey` on each nudge<br/>accept either a single key or a keyboard shortcut combination (e.g. `shift+Enter`); when<br/>omitted, `AdaptableOptions.plusMinusOptions` applies, then `+` / `-`. |
| [QuickSearch](https://www.adaptabletools.com/docs/reference/initialstate.md#quicksearch) | [`QuickSearchState`](https://www.adaptabletools.com/docs/reference/quicksearchstate.md) | Quick Search text restored at startup, and the styles used to highlight matches. |
| [Shortcut](https://www.adaptabletools.com/docs/reference/initialstate.md#shortcut) | [`ShortcutState`](https://www.adaptabletools.com/docs/reference/shortcutstate.md) | Collection of *Shortcut* objects to aid data entry and prevent &#39;fat finger&#39; issues |
| [StatusBar](https://www.adaptabletools.com/docs/reference/initialstate.md#statusbar) | [`StatusBarState`](https://www.adaptabletools.com/docs/reference/statusbarstate.md) | Status bars. Each `Key` matches an AG Grid `statusPanels` entry whose component is `AdaptableStatusPanel`. |
| [StyledColumn](https://www.adaptabletools.com/docs/reference/initialstate.md#styledcolumn) | [`StyledColumnState`](https://www.adaptabletools.com/docs/reference/styledcolumnstate.md) | Styled Columns. Each entry draws one column with a single visual style. |
| [Theme](https://www.adaptabletools.com/docs/reference/initialstate.md#theme) | [`ThemeState`](https://www.adaptabletools.com/docs/reference/themestate.md) | Active theme (`light`, `dark` or `os`) and which shipped themes are offered. |
| [ToolPanel](https://www.adaptabletools.com/docs/reference/initialstate.md#toolpanel) | [`ToolPanelState`](https://www.adaptabletools.com/docs/reference/toolpanelstate.md) | Sets order &amp; visibility of Tool Panel controls in AdapTable ToolPanel (on right of grid) |
| [UserInterface](https://www.adaptabletools.com/docs/reference/initialstate.md#userinterface) | [`UserInterfaceState`](https://www.adaptabletools.com/docs/reference/userinterfacestate.md) | Controls the visibility of AdapTable UI elements (Dashboard, Tool Panel, Status Bar, Menus etc.) |

## Property Details

### Alert

Collection of `AlertDefinitions` which will fire Alerts when the rule is met

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

###### Property Value

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

### Application

Empty state section (only populated at Design Time) available for User to store their own data with the rest of AdapTable state.

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

###### Property Value

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

### CalculatedColumn

Collection of *CalculatedColumn* objects that will display a value based on other cells in the row (using a Calculated Column Expression)

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

###### Property Value

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

### Charting

Saved charts. AG Grid charts are `ChartDefinitions` (`Name` and `Model`). Application charts are `ExternalChartDefinitions` (`Name` and `Data`).

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

###### Property Value

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

### CustomSort

Collection of *Custom Sort* objects to allow some columns to be sorted in non-standard (e.g. non alphabetical) ways

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

###### Property Value

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

### Dashboard

Large series of properties to give users full control over the look and feel of the *Dashboard* - the section above the grid with toolbars and buttons

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

###### Property Value

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

### Export

Collection of *Report* objects, together with name of the Current Report, as part of AdapTable export Module

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

###### Property Value

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

### FlashingCell

Flashing Cell definitions. Each one names a column scope and a boolean rule, and flashes a cell, a row, or an aggregated cell.

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

###### Property Value

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

### FormatColumn

Format Columns. Each one colours cells, changes how values are displayed, or both, for a column scope. Omit `Rule` to apply it on every row.

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

###### Property Value

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

### FreeTextColumn

Collection of *FreeText* objects that define user-owned columns whose cell values are stored in Adaptable State (not the grid DataSource). Use for editable per-row fields such as ops notes, flags, or codes — distinct from cell-level Notes and Comments.

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

###### Property Value

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

### Layout

Collection of *Layouts* to name (and manage) sets of column visibility, order, grouping, sorts, aggregations, filters etc.
Required unless `layoutOptions.autoCreateLayout` is set.

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

###### Property Value

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

### NamedQuery

Named Queries other expressions can call with `QUERY('Name')`. A boolean query can be a Grid Filter or an Alert rule.

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

###### Property Value

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

### Note

Notes. One piece of text on one cell, located by primary key and column id.

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

###### Property Value

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

### PlusMinus

Plus Minus module: nudge rules. Optional `IncrementKey` / `DecrementKey` on each nudge
accept either a single key or a keyboard shortcut combination (e.g. `shift+Enter`); when
omitted, `AdaptableOptions.plusMinusOptions` applies, then `+` / `-`.

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

###### Property Value

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

### QuickSearch

Quick Search text restored at startup, and the styles used to highlight matches.

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

###### Property Value

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

### Shortcut

Collection of *Shortcut* objects to aid data entry and prevent &#39;fat finger&#39; issues

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

###### Property Value

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

### StatusBar

Status bars. Each `Key` matches an AG Grid `statusPanels` entry whose component is `AdaptableStatusPanel`.

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

###### Property Value

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

### StyledColumn

Styled Columns. Each entry draws one column with a single visual style.

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

###### Property Value

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

### Theme

Active 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

Sets order &amp; visibility of Tool Panel controls in AdapTable ToolPanel (on right of grid)

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

###### Property Value

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

### UserInterface

Controls the visibility of AdapTable UI elements (Dashboard, Tool Panel, Status Bar, Menus etc.)

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

###### Property Value

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