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:

Parameter Type Description
leaf WorkspaceLeaf The leaf to split.
newLeaf WorkspaceLeaf The new leaf to insert.
direction? SplitDirection | undefined The split direction.
before? boolean | undefined Whether to insert before the current leaf.

Returns: void