Skip to content

Workspace.getSideLeaf method

Workspace › getSideLeaf

Unofficial

Get leaf in the side ribbon/dock and split if necessary.

Signature:

getSideLeaf(sideRibbon: WorkspaceMobileDrawer | WorkspaceSidedock, split: boolean): WorkspaceLeaf

Parameters:

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: WorkspaceLeafThe side leaf.