Disables toolbar item or items with
id.
disable(id1, [id2], ...)
id |
string, id of the toolbar item |
Returns integer.
Description
The item(s) must exists in the
.items array of the toolbar. The toolbar item is
identified by the
.id property. The method returns the
number of disabled items that were enabled before.
If you have toolbar defined in the following way:
You can disable toolbar item:
You can also disable toolbar menu item: