Skip to content

Workspace.createLeafBySplit method

Workspace › createLeafBySplit

Official

Create a leaf by a split.

Signature:

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

Parameters:

ParameterTypeDescription
leafWorkspaceLeafThe leaf.
direction?SplitDirection | undefinedThe direction to split in.
before?boolean | undefinedWhether to place the new leaf before the existing leaf.

Returns: WorkspaceLeaf

Since: 0.9.7