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:

Parameter Type Description
leaf? WorkspaceLeaf | undefined The leaf to split, or undefined for active leaf.
direction? SplitDirection | undefined The split direction.

Returns: WorkspaceLeafThe newly created leaf.