Workspace โ€บ duplicateLeaf

Workspace.duplicateLeaf() method

Warning: This API is now obsolete.

  • Use the new form of this method instead

Signature:

duplicateLeaf(leaf: WorkspaceLeaf, direction?: SplitDirection): Promise<WorkspaceLeaf>;

Parameters

ParameterTypeDescription
leafWorkspaceLeaf
directionSplitDirection(Optional)

Returns:

Promise<WorkspaceLeaf>