๐Ÿ’Ž Obsidian Developer Docs

Home

โฏ

Reference

โฏ

TypeScript API

โฏ

Workspace

โฏ

duplicateLeaf_1

duplicateLeaf_1

2025๋…„ 6์›” 29์ผ1 min read

Workspace โ€บ duplicateLeaf

Workspace.duplicateLeaf() method

Signature:

duplicateLeaf(leaf: WorkspaceLeaf, leafType: PaneType | boolean, direction?: SplitDirection): Promise<WorkspaceLeaf>;

Parameters

ParameterTypeDescription
leafWorkspaceLeaf
leafTypePaneType | boolean
directionSplitDirection(Optional)

Returns:

Promise<WorkspaceLeaf>


๊ทธ๋ž˜ํ”„ ๋ทฐ

  • Workspace.duplicateLeaf() method
  • Parameters

Created with Quartz v4.5.1 ยฉ 2025

  • GitHub
  • Discord Community