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