Skip to content

Workspace.handleLinkContextMenu method

Workspace › handleLinkContextMenu

Unofficial

Handle the context menu for an internal link.

Signature:

handleLinkContextMenu(menu: Menu, linkText: string, sourcePath: string, leaf?: WorkspaceLeaf | undefined): void

Parameters:

ParameterTypeDescription
menuMenuThe context menu.
linkTextstringThe internal link text.
sourcePathstringThe source path of the link.
leaf?WorkspaceLeaf | undefinedThe leaf to add context actions for.

Returns: void

Since: 0.12.10