w2toolbar.click

Called when user clicks on a toolbar item.
click(id, [event])
id string, id of the toolbar item
event object, DOM Event object
Returns undefined.

Description

This method is called when user clicks on the toolbar item. It is used internally, but you can use it to emulate clicks. This method emits .onClick event.
If you have toolbar defined in the following way: You can check toolbar item: You can also click toolbar menu item:

User Comments

comments powered by Disqus