Finds toolbar item with
id and extends it with
item object.
set(id, item)
id |
string, id of the toolbar item |
item |
object, new toolbar item object |
Returns boolean.
Description
The first argument
id is the id of the toolbar item you used when you created toolbar items. The
.items array holds all created toolbar items. The toolbar item object is not replaced with
item, but extended by it. If you call this method it during run-time, you will need to call
.refresh() method. If toolbar item was successfully extended the method will
return true, otherwise false.
If you have toolbar defined in the following way:
You can get toolbar item:
You can also set toolbar menu item: