Skip to content

NotebookNavigatorMenuContext

What every Notebook Navigator menu context has in common: a way to add an item, and nothing else.

The absence of a Menu is the whole shape of the integration problem — command handlers write into a Menu, so something has to sit between them and this.

Import:

import type { NotebookNavigatorMenuContext } from '@mnaoumov/obsidian-lib/notebook-navigator';

Signature:

export interface NotebookNavigatorMenuContext

Properties

PropertyTypeDescription
addItem(callback: (item: MenuItem) => void) => voidAdds an item to the menu Notebook Navigator is building.

Links to this page: