Workspace.createLeafBySplit method
Workspace › createLeafBySplit
Official
Create a leaf by a split.Signature:
createLeafBySplit(leaf: WorkspaceLeaf, direction?: SplitDirection | undefined, before?: boolean | undefined): WorkspaceLeafParameters:
| Parameter | Type | Description |
|---|---|---|
| leaf | WorkspaceLeaf | The leaf. |
| direction? | SplitDirection | undefined | The direction to split in. |
| before? | boolean | undefined | Whether to place the new leaf before the existing leaf. |
Returns: WorkspaceLeaf
Since: 0.9.7