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