The display label for the menu item.
The underlined keyboard shortcut for the menu item.
OptionalshortcutOptional keyboard shortcut for the menu item.
OptionaliconOptional icon for the menu item.
OptionalhintOptional tooltip for the menu item.
OptionaltoggleOptional toggle state for the menu item.
OptionalisOptional callback to determine whether the item is active. Required if toggle is true.
OptionalisOptional callback to determine whether the item is enabled.
OptionalisOptional callback to determine whether the item is visible.
Callback invoked when the item is clicked.
OptionalelementReference to the menu item element, set only after the item is rendered.
Lightweight top menu that renders in the main menu bar or inside a dropdown menu.