Skip to content

RedDokia API Reference / RedDokiaTopBarMenuItem

Interface: RedDokiaTopBarMenuItem ​

Declarative menu item inside a topBar.menus dropdown or cascading submenu.

Properties ​

PropertyTypeDescription
action?(controller) => voidCallback executed with the workbench controller when the user clicks this menu item.
danger?booleanStyles the menu item in destructive/danger red when true.
disabled?booleanDisables the menu item when true.
dividerBefore?booleanRenders a horizontal separator line immediately above this item when true.
icon?RedDokiaIconValueOptional leading icon for the menu item (RedDokiaIcons.* constant, SVG string, or framework icon).
id?stringOptional unique identifier of the menu item.
items?RedDokiaTopBarMenuItem[]Nested child menu items rendered as a cascading submenu (>) on hover.
labelstringDisplay label of the menu action (supports mnemonic notation such as 'File(F)', 'New(N)', 'Open(O)...').
shortcut?stringOptional keyboard shortcut hint badge displayed on the right (e.g. 'Ctrl+O', 'Alt+Z').