# initialState

Versioned view state applied once during initial Grid setup. Use setState for runtime restoration.

Canonical: https://grid.syidax.com/docs/options/initialState/

<a id="meaning"></a>

## What does this API do?

Versioned view state applied once during initial Grid setup. Use setState for runtime restoration.

<a id="contract"></a>

## Exact input and result types

```typescript
initialState: SyGridState
```

| Item | Value |
| --- | --- |
| JavaScript name | initialState |
| HTML attribute | initial-state |
| Default | undefined |
| Input type | SyGridState |

<a id="usage"></a>

## Usage flow

Set this on a property of the Grid element. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

<a id="types"></a>

## Read related types

- [SyGridState](https://grid.syidax.com/docs/types/SyGridState.md)

<a id="recipes"></a>

## Feature explanations and examples

- [Settings and data fundamentals](https://grid.syidax.com/docs/guides/concepts.md)
- [API calls and event integration](https://grid.syidax.com/docs/guides/data-event-access.md)
