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:

ParameterTypeDescription
menuMenuThe context menu to extend.
fileTFileThe target file.
sourcestringThe source of the context menu event.

Returns: void