Workspace.handleLinkContextMenu method
Workspace › handleLinkContextMenu
Official
Add a context menu to internal file links.Signature:
handleLinkContextMenu(menu: Menu, linktext: string, sourcePath: string, leaf?: WorkspaceLeaf): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
| menu | Menu | |
| linktext | string | |
| sourcePath | string | |
| leaf? | WorkspaceLeaf | *(Optional)* |
Returns: boolean
Since: 0.12.10
Unofficial
Handle the context menu for an internal link.Signature:
handleLinkContextMenu(menu: Menu, linkText: string, sourcePath: string, leaf?: WorkspaceLeaf): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| menu | Menu | The context menu. |
| linkText | string | The internal link text. |
| sourcePath | string | The source path of the link. |
| leaf? | WorkspaceLeaf | The leaf to add context actions for. |
Returns: void
Since: 0.12.10