Layout Changed Event

An Adaptable Event that fires whenever the Layout State changes.

LayoutChangedInfo

The LayoutChangedInfo object provides the reason why the Layout changed and the Layout State before and after the change:

PropertyDescription
actionNameWhat caused Layout State to change
newLayoutStateCurrent Layout State
oldLayoutStatePrevious Layout State

Action Names

The value for the actionName property can be one of 5 values:

  • LAYOUT_ADD
  • LAYOUT_EDIT
  • LAYOUT_SAVE
  • LAYOUT_DELETE
  • LAYOUT_SELECT

Event Subscription

Subscribing to the Event is done the same as with all Adaptable Events:

api.eventApi.on('LayoutChanged', (eventInfo: LayoutChangedInfo) => {
// do something with the info
});

More Information