Skip to content

Workspace.splitLeafOrActive method

Workspace › splitLeafOrActive

Unofficial

Split provided leaf, or active leaf if none provided.

Signature:

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

Parameters:

ParameterTypeDescription
leaf?WorkspaceLeaf | undefinedThe leaf to split, or undefined for active leaf.
direction?SplitDirection | undefinedThe split direction.

Returns: WorkspaceLeafThe newly created leaf.