Skip to main content

[NodeMod Core]

/ .. / MenuItem

Interface: MenuItem

Defined in: src/core/menu.ts:11

Configuration for a single menu item.

Properties

name

name: string

Defined in: src/core/menu.ts:13

Display name of the menu item

handler?

optional handler: MenuHandler

Defined in: src/core/menu.ts:15

Handler function to execute when item is selected

optional submenu: Menu

Defined in: src/core/menu.ts:17

Submenu to navigate to when item is selected

disabled?

optional disabled: boolean

Defined in: src/core/menu.ts:19

Whether this item is disabled and cannot be selected