Saving state
Saving state
This section describes how to serialize a Dockview instance.
onDidLayoutChange | Invoked when any layout change occures, an aggregation of many events.
|
|---|---|
toJSON | Create a serialized object of the current component.
|
To retrieve the current state of Dockview call toJSON().
You can listen to the event onDidLayoutChange to determine when the layout has changed.
See also
- Loading state: restore a serialized layout with
fromJSON. - Layout history: undo and redo layout changes without a full save and restore.