Skip to content

INoteToolbarApi.Interface.NtbMenuItem.md

Chris Gurney edited this page Apr 2, 2026 · 5 revisions

obsidian-note-toolbar / INoteToolbarApi / NtbMenuItem

Defines a menu item that can be dynamically created and displayed via ntb.menu().

Properties

icon?

optional icon?: string

Optional icon to display in the menu item.


id?

optional id?: string

Optional ID to add to the menu item when it's rendered.

Since

1.27


label

label: string

Label for the menu item.


type

type: "command" | "file" | "uri"

Type of the menu item. Can be command, file, or uri.


value

value: string

Value for the menu item. For command, this is the command ID.

Clone this wiki locally