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): EventRefParameters:
| Parameter | Type | Description |
|---|---|---|
| name | "markdown-properties-menu" | 'markdown-properties-menu'. |
| callback | (menu: Menu, file: TFile | null) => unknown | Callback function. |
| ctx? | unknown | Context. |
Returns: EventRef — Event reference.
Remarks:
file is the file of the view that owns the metadata editor.