Skip to content

Workspace.on('markdown-properties-menu') method

Workspace › on(‘markdown-properties-menu’)

Unofficial

Triggers when the properties menu of a note's metadata editor is opened.

Signature:

on(name: "markdown-properties-menu", callback: (menu: Menu, file: TFile | null) => unknown, ctx?: unknown): EventRef

Parameters:

ParameterTypeDescription
name"markdown-properties-menu"'markdown-properties-menu'.
callback(menu: Menu, file: TFile | null) => unknownCallback function.
ctx?unknownContext.

Returns: EventRef — Event reference.

Remarks:

file is the file of the view that owns the metadata editor.