Skip to content

Workspace.splitLeaf method

Workspace › splitLeaf

Unofficial

Split leaves in specified direction

Signature:

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

Parameters:

ParameterTypeDescription
leafWorkspaceLeafThe leaf to split.
newLeafWorkspaceLeafThe new leaf to insert.
direction?SplitDirection | undefinedThe split direction.
before?boolean | undefinedWhether to insert before the current leaf.

Returns: void