Skip to main content

IMenuItemOptions

Properties

PropertyTypeDescription
check?booleanFor items preceded by checkboxes, indicates if the item is checked.
description?stringTooltip to be shown on the menu item
isEnabled?() => null | stringA function that gets called each time an item is shown. Should return null if the item is enabled, otherwise the reason why it's disabled. The reason for being disabled is shown in a tooltip.
order?numberPosition in the menu
radioGroup?stringIdentifies a group of items where only one can be checked at a time.
shortcut?stringShortcut to be shown on the item. NOTE: it does not handle the keypress, just shows the shortcut
visible?booleanWhether the menu is visible; if false, the menu is not added. Might be handy in for-loops and fluent API.