undoLayoutChanges()
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
Creates the UndoLayoutChanges command.
export declare function undoLayoutChanges(undoPointSelector?: UndoPointSelector, correlationId?: string): IUndoLayoutChanges;
Parameters
Parameter | Type | Description |
|---|---|---|
undoPointSelector | (Optional) specify function to determine up to which command to undo; if not provided the very last command will be undone | |
correlationId | string | (Optional) specify correlation id to use for this command. this will be included in all events that will be emitted during the command processing |
Returns
Remarks
Dispatching this command will result in reverting the state of the layout to a point before a particular layout command processing.
By default, the very last command will be undone, however you can provide a function of your own to determine up to which command should the undo go.