Skip to main content

disable()

disables and dims an item(s) of Toolbar

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

Parameters:

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

Example

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

Related sample: Toolbar. Enable/Disable

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

// disables all Toolbar itemstoolbar.disable();