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