LayoutChangedInfo

View as Markdown

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.

TypeScript
export interface LayoutChangedInfo extends
Extends

BaseContext

Properties

PropertyTypeDescription
actionNameLayoutChangedActionWhich action caused this change. See .
changedAreasLayoutChangedArea[]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).
newLayoutStateLayoutStateLayout State after this change.
oldLayoutStateLayoutState | undefinedLayout State before this change.

Absent for LAYOUT_READY, which fires once after startup and has no previous state.
adaptableContextanyCustom application Context provided in AdaptableOptions.adaptableContext

Property Details

actionName

Which action caused this change. See .

TypeScript
actionName: LayoutChangedAction;
Property Value

LayoutChangedAction

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

TypeScript
changedAreas?: LayoutChangedArea[];
Property Value

LayoutChangedArea[]

newLayoutState

Layout State after this change.

TypeScript
newLayoutState: LayoutState;
Property Value

LayoutState

oldLayoutState

Layout State before this change.

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

TypeScript
oldLayoutState: LayoutState | undefined;
Property Value

LayoutState | undefined

adaptableContext

Inherited from BaseContext

Custom application Context provided in AdaptableOptions.adaptableContext

TypeScript
adaptableContext: any;
Property Value

any