LayoutChangedInfo
The event comprises a single LayoutChangedInfo object which contains the old and new Layout State.
It also includes details about what action triggered the change:
Layout Changed Actions
The value for the actionName property is of type LayoutChangedAction
This contains all the possible actions that can cause the Layout State to change:
| Action |
|---|
'LAYOUT_READY' |
'LAYOUT_ADD' |
'LAYOUT_EDIT' |
'LAYOUT_SAVE' |
'LAYOUT_DELETE' |
'LAYOUT_SELECT' |
'LAYOUT_COLUMN_FILTER_ADD' |
'LAYOUT_COLUMN_FILTER_EDIT' |
'LAYOUT_COLUMN_FILTER_SET' |
'LAYOUT_COLUMN_FILTER_CLEAR' |
'LAYOUT_COLUMN_FILTER_CLEAR_ALL' |
'LAYOUT_COLUMN_FILTER_SUSPEND' |
'LAYOUT_COLUMN_FILTER_SUSPEND_ALL' |
'LAYOUT_COLUMN_FILTER_UNSUSPEND' |
'LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL' |
'LAYOUT_GRID_FILTER_SET' |
'LAYOUT_GRID_FILTER_CLEAR' |
'LAYOUT_GRID_FILTER_SUSPEND' |
'LAYOUT_GRID_FILTER_UNSUSPEND' |
Event Subscription
Subscribing to the Event is done the same way as with all Adaptable Events:
api.eventApi.on('LayoutChanged', (eventInfo: LayoutChangedInfo) => {
});