Workspace.getSideLeaf method
Workspace › getSideLeaf
Unofficial
Get leaf in the side ribbon/dock and split if necessary.Signature:
getSideLeaf(sideRibbon: WorkspaceMobileDrawer | WorkspaceSidedock, split: boolean): WorkspaceLeafParameters:
| Parameter | Type | Description |
|---|---|---|
| sideRibbon | WorkspaceMobileDrawer | WorkspaceSidedock | {@link obsidian#Side} ribbon to get leaf from. |
| split | boolean | Whether to split the leaf if it does not exist. |
Returns: WorkspaceLeaf — The side leaf.