Workspace.splitLeaf method
Workspace › splitLeaf
Unofficial
Split leaves in specified directionSignature:
splitLeaf(leaf: WorkspaceLeaf, newLeaf: WorkspaceLeaf, direction?: SplitDirection | undefined, before?: boolean | undefined): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| leaf | WorkspaceLeaf | The leaf to split. |
| newLeaf | WorkspaceLeaf | The new leaf to insert. |
| direction? | SplitDirection | undefined | The split direction. |
| before? | boolean | undefined | Whether to insert before the current leaf. |
Returns: void