menu support onClick function, if zul file define onClick event, when user click the left part of menu, it will call onClick; and this is separate from popup function
Note: The onClick only supports when the menu is topmost. For example,
<menubar>
<menu label="Topmost" onClick='alert(1);'>
<menupopup>
<menuitem label="Submenu"/>
</menupopup>
</menu>
</menubar>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ready since Oct. 7
For example,
<menu onClick=''/>
Note: The onClick only supports when the menu is topmost. For example,
<menubar>
<menu label="Topmost" onClick='alert(1);'>
<menupopup>
<menuitem label="Submenu"/>
</menupopup>
</menu>
</menubar>