Skip to content

GraphPluginInstance.onFileMenu method

GraphPluginInstance › onFileMenu

Unofficial

Add graph-related items to the file context menu.

Signature:

onFileMenu(menu: Menu, file: TAbstractFile, source: string, leaf?: WorkspaceLeaf | undefined): void

Parameters:

ParameterTypeDescription
menuMenuThe context menu to add items to.
fileTAbstractFileThe file associated with the menu.
sourcestringThe source of the menu event.
leaf?WorkspaceLeaf | undefinedThe workspace leaf, if available.

Returns: void