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