Skip to main content

IMenuItemOptions

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

Properties

PropertyTypeDescriptionDefined in
check?booleanFor items preceded by checkboxes, indicates if the item is checked.js-api/src/widgets/types.ts:213
description?stringTooltip to be shown on the menu itemjs-api/src/widgets/types.ts:216
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:210
onMouseEnter?() => voidGets invoked when the mouse enters the itemjs-api/src/widgets/types.ts:219
onMouseLeave?() => voidGets invoked when the mouse leaves the itemjs-api/src/widgets/types.ts:222
order?numberPosition in the menujs-api/src/widgets/types.ts:199
radioGroup?stringIdentifies a group of items where only one can be checked at a time.js-api/src/widgets/types.ts:196
shortcut?stringShortcut to be shown on the item. NOTE: it does not handle the keypress, just shows the shortcutjs-api/src/widgets/types.ts:202
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:205