Skip to content

NoteComposerPluginInstance.onFileMenu method

NoteComposerPluginInstance › onFileMenu

Unofficial

Add note composer items to a file context menu.

Signature:

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

Parameters:

Parameter Type Description
menu Menu The context menu to extend.
file TFile The target file.
source string The source of the context menu event.

Returns: void