Adds a toolbar item or items.
check - check(id1, [id2], ...)
Checks toolbar item or items with id (visually looks like pressed button).
click - click(id, [event])
Called when user clicks on a toolbar item.
Called when user selects an item from a color picker drop down menu.
Disables toolbar item or items with id.
enable - enable(id1, [id2], ...)
Enables toolbar item or items with id.
get - get([id], [returnIndex])
Finds toolbar item with id and returns it or its index.
Generates HTML for the toolbar item.
hide - hide(id1, [id2], ...)
Hides toolbar item or items with id.
insert - insert(before, items)
Inserts a toolbar item or items before item with id=before.
menuClick - menuClick(id, menu_index, [event])
Called when user selects an item from a drop down menu.
Called when user uses the mouse to interact with a toolbar item.
remove - remove(id1, [id2], ...)
Removes items from the toolbar.
Scrolls toolbar items if they overflow.
Finds toolbar item with id and extends it with item object.
setCount - setCount(id, count, [className], [style])
Updates badge text and style of the toolbar item with id.
show - show(id1, [id2], ...)
Shows toolbar item or items with id.
Shows tooltip of the item with id.
Shows tooltip of the item with id.
Unchecks toolbar item or items with id (visually looks like pressed button).
Destroys the widget and removes it from the global w2ui object
off - off(type, [handler])
Removes event listener from the object.
Adds event listener to a object.
Refreshes the widget or a specific part of it
Renders the widget into the specified HTML element
Resizes the widget to fit its container
Executes all event listeners added with on() method.
Unmounts the widget and cleans up resources