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
| Parameter | Type | Description |
|---|---|---|
newLeaf | ’split’ | (Optional) |
direction | SplitDirection | (Optional) |
Returns: