disable()
disables and dims an item(s) of Menu
disable(ids?: (string | number) | (string | number)[]): void;
Parameters:
ids: string | number | array
- optional, an ID or an array of IDs of items
Example
menu.disable("save_btn");
// several at a time
menu.disable(["cancel_btn","del_btn"]);
Related sample: Menu. Enable / disable menu item
Starting from v7.0, it is possible to disable all items at once by using the method without the parameter:
// disables all Menu items
menu.disable();