Workspace.duplicateLeaf method
Workspace › duplicateLeaf
Official
Duplicate a leaf.Signature:
duplicateLeaf(leaf: WorkspaceLeaf, direction?: SplitDirection | undefined): Promise<WorkspaceLeaf>Parameters:
| Parameter | Type | Description |
|---|---|---|
| leaf | WorkspaceLeaf | |
| direction? | SplitDirection | undefined | *(Optional)* |
Returns: Promise<WorkspaceLeaf>
Since: 0.13.8
Official
Duplicate a leaf.Signature:
duplicateLeaf(leaf: WorkspaceLeaf, leafType: boolean | PaneType, direction?: SplitDirection | undefined): Promise<WorkspaceLeaf>Parameters:
| Parameter | Type | Description |
|---|---|---|
| leaf | WorkspaceLeaf | |
| leafType | boolean | PaneType | |
| direction? | SplitDirection | undefined | *(Optional)* |
Returns: Promise<WorkspaceLeaf>
Since: 1.1.0