Skip to content

FileExplorerPluginInstance.onFileMenu method

FileExplorerPluginInstance › onFileMenu

Unofficial

Adds file-explorer items to the file context menu.

Signature:

onFileMenu(menu: Menu, file: TAbstractFile, source: string): void

Parameters:

ParameterTypeDescription
menuMenuThe menu to add to.
fileTAbstractFileThe file or folder the menu was opened on.
sourcestringThe source of the menu (e.g. 'file-explorer-context-menu').

Returns: void