WorkspaceLayoutStateComponent.onLayoutLoad method
WorkspaceLayoutStateComponent › onLayoutLoad
Subscribes to layout loads: a saved workspace loaded, the layout restored at startup, or the saved layout read when the component is first loaded after layout-ready. Every value may have changed.Signature:
onLayoutLoad(callback: () => void): () => voidParameters:
| Parameter | Type | Description |
|---|---|---|
| callback | () => void | Called after the layout is loaded, once its leaves exist. |
Returns: () => void — A function that unsubscribes. Unloading the component unsubscribes too.