Skip to content

Workspace.splitLeafOrActive method

Workspace › splitLeafOrActive

Unofficial

Split provided leaf, or active leaf if none provided.

Signature:

splitLeafOrActive(leaf?: WorkspaceLeaf, direction?: SplitDirection): WorkspaceLeaf

Parameters:

ParameterTypeDescription
leaf?WorkspaceLeafThe leaf to split, or undefined for active leaf.
direction?SplitDirectionThe split direction.

Returns: WorkspaceLeaf — The newly created leaf.