w2sidebar.menuClick

Called when user select item from context menu.
menuClick(id, index, [event])
id string, id of the tab
index integer, index of the item in the menu
event object, optional, DOM Event object
Returns undefined.

Description

This method is called when user selects an item from the context menu. It is used internally, but you can use it to emulate context menu selection. This method emits .onMenuClick event.
If you have sidebar defined in the following way: You can click on the node:

User Comments

comments powered by Disqus