Skip to main content

IMenuItemOptions

Defined in: js-api/src/widgets/types.ts:198

Properties

PropertyTypeDescriptionDefined in
check?booleanFor items preceded by checkboxes, indicates if the item is checked.js-api/src/widgets/types.ts:217
description?stringTooltip to be shown on the menu itemjs-api/src/widgets/types.ts:220
isEnabled?() => string | nullA 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.js-api/src/widgets/types.ts:214
onMouseEnter?() => voidGets invoked when the mouse enters the itemjs-api/src/widgets/types.ts:223
onMouseLeave?() => voidGets invoked when the mouse leaves the itemjs-api/src/widgets/types.ts:226
order?numberPosition in the menujs-api/src/widgets/types.ts:203
radioGroup?stringIdentifies a group of items where only one can be checked at a time.js-api/src/widgets/types.ts:200
shortcut?stringShortcut to be shown on the item. NOTE: it does not handle the keypress, just shows the shortcutjs-api/src/widgets/types.ts:206
visible?booleanWhether the menu is visible; if false, the menu is not added. Might be handy in for-loops and fluent API.js-api/src/widgets/types.ts:209