To set the size of icons in the Toolbar (all icons at once) you should use method setIconSize().
myToolbar.setIconSize(24);
Possible values:
The following methods can be applied to any item in the toolbar:
myToolbar.setPosition(itemId, pos);
var position = myToolbar.getPosition(itemId); // returns current item's position
var itemType = myToolbar.getType(itemId); // returns item's type
A simple tool for item's removal from the toolbar is removeItem() method:
myToolbar.removeItem(itemId);
Back to top