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.
export interface LayoutChangedInfo extendsExtends
Properties
| Property | Type | Description |
|---|---|---|
| actionName | LayoutChangedAction | Which action caused this change. See . |
| changedAreas | LayoutChangedArea[] | 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). |
| newLayoutState | LayoutState | Layout State after this change. |
| oldLayoutState | LayoutState | undefined | Layout State before this change. Absent for LAYOUT_READY, which fires once after startup and has no previous state. |
| adaptableContext | any | Custom application Context provided in AdaptableOptions.adaptableContext |
Property Details
actionName
Which action caused this change. See .
actionName: LayoutChangedAction;Property Value
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).
changedAreas?: LayoutChangedArea[];Property Value
newLayoutState
Layout State after this change.
newLayoutState: LayoutState;Property Value
oldLayoutState
Layout State before this change.
Absent for LAYOUT_READY, which fires once after startup and has no previous state.
oldLayoutState: LayoutState | undefined;Property Value
LayoutState | undefined
adaptableContext
Inherited from BaseContext
Custom application Context provided in AdaptableOptions.adaptableContext
adaptableContext: any;Property Value
any