You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Layouts are loaded and saved via to `fromJSON` and `toJSON` methods on the Dockview api.
16
-
The api also exposes an event `onDidLayoutChange` you can listen on to determine when the layout has changed.
17
-
Below are some snippets showing how you might load from and save to localStorage.
15
+
To load a layout you should a pass a valid object to `fromJSON`. If you try to load an invalid or corrupted layout the dock will throw an Error and the dock will reset gracefully ready
16
+
for another attempt with a valid object.
18
17
19
-
If you try to load a invalid or corrupted layout the dock will recover g
18
+
You could load a previously saved layout from local storage for example.
0 commit comments