onLayoutReadyEx
Unofficial
Run the callback once the workspace layout is loaded, passing it the workspace as a LayoutReadyWorkspace.
Like obsidian#Workspace.onLayoutReady, it runs the callback right away if the layout is already loaded, and queues it otherwise. Obsidian calls an onLayoutReady callback with no arguments, so this helper is what hands the callback the narrowed workspace.
Import:
import { onLayoutReadyEx } from '@obsidian-typings/obsidian-catalyst-latest/implementations';Signature:
function onLayoutReadyEx(workspace: Workspace, callback: (workspace: LayoutReadyWorkspace) => unknown): voidParameters:
| Parameter | Type | Description |
|---|---|---|
workspace |
Workspace | The workspace. |
callback |
(workspace: LayoutReadyWorkspace) => unknown | The callback to run. |
Returns: void