Workspace.onLayoutReady method
Workspace › onLayoutReady
Official
Runs the callback function right away if layout is already ready, or push it to a queue to be called later when layout is ready.Signature:
onLayoutReady(callback: () => unknown): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| callback | () => unknown | The callback to run. |
Returns: void
Since: 0.11.0
Example:
workspace.onLayoutReady(() => { console.log('layout is ready');});