Skip to main content

enable()

enables a disabled item(s) of Menu

enable(ids: Id | Id[]): void;

Parameters:

ids: string | number | array - optional, one ID or an array of IDs of items

Example

menu.enable("save_btn");// several at a timemenu.enable(["cancel_btn","del_btn"]);

Related sample: Menu. Enable/Disable Menu Item

Starting from v7.0, it is possible to enable all items at once by using the method without the parameter:

// enables all Menu itemsmenu.enable();