RedDokia API Reference / RedDokiaTopBarMenuItem
Interface: RedDokiaTopBarMenuItem
Declarative menu item inside a topBar.menus dropdown or cascading submenu.
Properties
| Property | Type | Description |
|---|---|---|
action? | (controller) => void | Callback executed with the workbench controller when the user clicks this menu item. |
danger? | boolean | Styles the menu item in destructive/danger red when true. |
disabled? | boolean | Disables the menu item when true. |
dividerBefore? | boolean | Renders a horizontal separator line immediately above this item when true. |
icon? | RedDokiaIconValue | Optional leading icon for the menu item (RedDokiaIcons.* constant, SVG string, or framework icon). |
id? | string | Optional unique identifier of the menu item. |
items? | RedDokiaTopBarMenuItem[] | Nested child menu items rendered as a cascading submenu (>) on hover. |
label | string | Display label of the menu action (supports mnemonic notation such as 'File(F)', 'New(N)', 'Open(O)...'). |
shortcut? | string | Optional keyboard shortcut hint badge displayed on the right (e.g. 'Ctrl+O', 'Alt+Z'). |