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 NotebookNavigatorMenuContextProperties
| Property | Type | Description |
|---|---|---|
| addItem | (callback: (item: MenuItem) => void) => void | Adds an item to the menu Notebook Navigator is building. |
Links to this page: