IMenuItemsOptions<T>
See Menu.items
Type parameters
| Type parameter | Value |
|---|---|
T | any |
Properties
| Property | Type | Description |
|---|---|---|
getTooltip? | (item: T) => string | Tooltip |
isChecked? | (item: T) => boolean | Whether a check box appears before the item |
isValid? | (item: T) => null | string | If result is not null, the item is grayed out and the result is shown in the tooltip |
onMouseEnter? | (item: T) => void | Gets invoked when the mouse enters the item |
radioGroup? | string | Identifies a group of items where only one can be checked at a time. |
toString? | (item: T) => string | Text to be shown on the menu item |