Skip to content

Workspace.createLeafBySplit method

Workspace › createLeafBySplit

Official

Create a leaf by a split.

Signature:

createLeafBySplit(leaf: WorkspaceLeaf, direction?: SplitDirection, before?: boolean): WorkspaceLeaf

Parameters:

ParameterTypeDescription
leafWorkspaceLeafThe leaf.
direction?SplitDirectionThe direction to split in.
before?booleanWhether to place the new leaf before the existing leaf.

Returns: WorkspaceLeaf

Since: 0.9.7