isDisabled()
checks whether an item of Menu is disabled
isDisabled(id: string | number): boolean;
Parameters:
id: string | number
- an id of the Menu item
Returns:
true
, if an item of Menu is disabled; otherwise, false
.
Example
menu.isDisabled("id"); // -> returns true/false
Related sample: Menu. Enable / disable menu item
Change log:
added in v6.4