Skip to content

Workspace.splitLeaf method

Workspace › splitLeaf

Unofficial

Split leaves in specified direction

Signature:

splitLeaf(leaf: WorkspaceLeaf, newLeaf: WorkspaceLeaf, direction?: SplitDirection, before?: boolean): void

Parameters:

ParameterTypeDescription
leafWorkspaceLeafThe leaf to split.
newLeafWorkspaceLeafThe new leaf to insert.
direction?SplitDirectionThe split direction.
before?booleanWhether to insert before the current leaf.

Returns: void