Called when user selects an item from a drop down menu.
menuClick(id, menu_index, [event])

event | object, event object

Returns undefined.

#### Description

This method only works for toolbar item of type menu. It is called when user selects a menu item. It is used internally, but you can use to emulate clicks. This method emits .onMenuClick event.
If you have toolbar defined in the following way: $('#toolbar').w2toolbar({ name : 'toolbar', items : [ { type: 'check', id: 'item1', text: 'Check', img: 'icon-page', checked: false }, { type: 'menu', id: 'item2', group: '1', text: 'Menu', img: 'icon-add', items: ['item1', 'item2', 'item3', 'item4'] } ] }); You can emulate menu click in the following way: var tb = w2ui['toolbar']; tb.menuClick({ name: tb.name, item: tb.get('item2'), subItem: tb.get('item2:item1'), originalEvent: {} });