OptionaldividerDraw a rule above this row, to group what follows apart from what came before.
OptionaliconOptionaliconUnicode character for the icon (optional)
OptionalimageOptionalonclickOptional: a row that only opens a MenuActionItemOptions.submenu needs no action of its own.
OptionalshortcutThe keybinding activates this function. This is just visual. The actual binding is defined in UIManager
OptionalsubmenuRows that open in a panel beside this one, which then carries the click. The function form is resolved every time the menu opens, so a submenu may depend on the element it was opened over.
A row with a submenu keeps its own onclick if it has one; the click opens the
panel either way, and closes it again on a second click.
OptionalsuffixAn element pinned to the row's right-hand end, after the label — a count, a badge, anything the row's own text should not have to carry.
Held by the caller rather than described to the library, so it can still be written to once the menu is drawn: a value that is still being fetched fills its slot when it arrives. An element is in one place at a time, so a row built fresh on every open needs a fresh one too.
OptionalsvgText of the option.
OptionaltitleTitle to be shown when hovering over the option.
OptionalvariantOptionalvisible
Options to define an action item in a menu. Can be used in contextual menus or multi-select menus.