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 'obsidian-dev-utils/obsidian/notebook-navigator';Signature:
export interface NotebookNavigatorMenuContextMethods
| Method | Returns | Description |
|---|---|---|
| addItem(callback) | void | Adds an item to the menu Notebook Navigator is building. |
Links to this page: