# LayoutChangedInfo

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

Payload of the `LayoutChanged` event.

Fires when Layout State changes: the current Layout is ready, added, edited, saved, deleted or selected, and when a Column Filter or the Grid Filter on the current Layout changes.

Extends , so `adaptableApi` is included.

```ts title="TypeScript"
export interface LayoutChangedInfo extends BaseContext 
```

###### Extends

[`BaseContext`](https://www.adaptabletools.com/docs/reference/basecontext.md)

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [actionName](https://www.adaptabletools.com/docs/reference/layoutchangedinfo.md#actionname) | [`LayoutChangedAction`](https://www.adaptabletools.com/docs/reference/layoutchangedaction.md) | Which action caused this change. See . |
| [changedAreas](https://www.adaptabletools.com/docs/reference/layoutchangedinfo.md#changedareas) | [`LayoutChangedArea`](https://www.adaptabletools.com/docs/reference/layoutchangedarea.md)`[]` | Which parts of the **current** Layout changed.<br/><br/>Use this when you care *what* changed, rather than which `actionName` fired:<br/><br/>- `LAYOUT_SAVE`: diffs non-filter facets (e.g. `ColumnSorting`, `RowGrouping`)<br/>- Column Filter actions: always `['ColumnFilter']`<br/>- Grid Filter actions: always `['GridFilter']`<br/><br/>Omitted for layout identity changes (`LAYOUT_SELECT`, `LAYOUT_ADD`, `LAYOUT_DELETE`, `LAYOUT_READY`). |
| [newLayoutState](https://www.adaptabletools.com/docs/reference/layoutchangedinfo.md#newlayoutstate) | [`LayoutState`](https://www.adaptabletools.com/docs/reference/layoutstate.md) | Layout State after this change. |
| [oldLayoutState](https://www.adaptabletools.com/docs/reference/layoutchangedinfo.md#oldlayoutstate) | [`LayoutState`](https://www.adaptabletools.com/docs/reference/layoutstate.md)` \| undefined` | Layout State before this change.<br/><br/>Absent for `LAYOUT_READY`, which fires once after startup and has no previous state. |
| [adaptableContext](https://www.adaptabletools.com/docs/reference/layoutchangedinfo.md#adaptablecontext) | `any` | Custom application Context provided in `AdaptableOptions.adaptableContext` |

## Property Details

### actionName

Which action caused this change. See .

```ts title="TypeScript"
actionName: LayoutChangedAction;
```

###### Property Value

[`LayoutChangedAction`](https://www.adaptabletools.com/docs/reference/layoutchangedaction.md)

### changedAreas

Which parts of the **current** Layout changed.

Use this when you care *what* changed, rather than which `actionName` fired:

- `LAYOUT_SAVE`: diffs non-filter facets (e.g. `ColumnSorting`, `RowGrouping`)
- Column Filter actions: always `['ColumnFilter']`
- Grid Filter actions: always `['GridFilter']`

Omitted for layout identity changes (`LAYOUT_SELECT`, `LAYOUT_ADD`, `LAYOUT_DELETE`, `LAYOUT_READY`).

```ts title="TypeScript"
changedAreas?: LayoutChangedArea[];
```

###### Property Value

[`LayoutChangedArea`](https://www.adaptabletools.com/docs/reference/layoutchangedarea.md)`[]`

### newLayoutState

Layout State after this change.

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

###### Property Value

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

### oldLayoutState

Layout State before this change.

Absent for `LAYOUT_READY`, which fires once after startup and has no previous state.

```ts title="TypeScript"
oldLayoutState: LayoutState | undefined;
```

###### Property Value

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

### adaptableContext

> *Inherited from [BaseContext](https://www.adaptabletools.com/docs/reference/basecontext.md)*

Custom application Context provided in `AdaptableOptions.adaptableContext`

```ts title="TypeScript"
adaptableContext: any;
```

###### Property Value

`any`
