WorkspacegetLeaf(‘split’)

Workspace.getLeaf(‘split’) method

Creates a new leaf in a leaf adjacent to the currently active leaf. If direction is 'vertical', the leaf will appear to the right. If direction is 'horizontal', the leaf will appear below the current leaf.

Signature:

getLeaf(newLeaf?: 'split', direction?: SplitDirection): WorkspaceLeaf;

Parameters

ParameterTypeDescription
newLeaf’split’(Optional)
directionSplitDirection(Optional)

Returns:

WorkspaceLeaf