Workspace.duplicateLeaf() method
Signature:
duplicateLeaf(leaf: WorkspaceLeaf, leafType: PaneType | boolean, direction?: SplitDirection): Promise<WorkspaceLeaf>;Parameters
| Parameter | Type | Description |
|---|---|---|
leaf | WorkspaceLeaf | |
leafType | PaneType | boolean | |
direction | SplitDirection | (Optional) |
Returns:
Promise<WorkspaceLeaf>