disable

disables and dims an item(s) of Ribbon

void disable(string|array ids);

Parameters

idsstring|arrayoptional, an ID or an array of IDs of items

Example

ribbon.disable("save_btn");
// several at a time
ribbon.disable(["cancel_btn","del_btn"]);

Related samples

Details

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

// disables all Ribbon items
ribbon.disable();
See also
Back to top