Workspace.splitLeafOrActive method
Workspace › splitLeafOrActive
Unofficial
Split provided leaf, or active leaf if none provided.Signature:
splitLeafOrActive(leaf?: WorkspaceLeaf | undefined, direction?: SplitDirection | undefined): WorkspaceLeafParameters:
| Parameter | Type | Description |
|---|---|---|
| leaf? | WorkspaceLeaf | undefined | The leaf to split, or undefined for active leaf. |
| direction? | SplitDirection | undefined | The split direction. |
Returns: WorkspaceLeaf — The newly created leaf.