Skip to main content

IMenuItemsOptions<T>

See Menu.items

Type parameters

Type parameterValue
Tany

Properties

PropertyTypeDescription
getTooltip?(item: T) => stringTooltip
isChecked?(item: T) => booleanWhether a check box appears before the item
isValid?(item: T) => null | stringIf result is not null, the item is grayed out and the result is shown in the tooltip
onMouseEnter?(item: T) => voidGets invoked when the mouse enters the item
radioGroup?stringIdentifies a group of items where only one can be checked at a time.
toString?(item: T) => stringText to be shown on the menu item