ExtJs bubble menu event -
My Extras menu is defined as I have two custom methods in my menu item 'hook modes' and 'handler meth'. I 'HookMethod' has been added based on some condition. I bubble click events for individual menu items on the root menu. Then checks that the hook is defined, then call 'hookMethod' and then call 'handler system' directly. The problem I am experiencing is that the click listener is twice, once for menutem, and the menu Is called once for. Apart from this, what is the e-logic I was thinking that it will be asked only once for the menu and I have a way to recover the actual menu items that have been clicked.
{xtype: "menu", listeners: {click: function (item, e, appetts) {if (madhacmind) {item.hookMethod (item. HandlerMethod); } Else {item.handler} method (this); }}}, Item: [{xtype: "menuitem", text: "process record", bubble events: ['click'], hook method: function (actual method) {// do some pre-processing here and then Call real handler actual model (args)}, handler method: function (args) {// actual processing}}}}}
Ext.menu.Menu
event has four parameters.
The first parameter menu
is the object
The second item
parameter is an object's object that was clicked. This parameter can be used to determine which items were clicked in the menu.
Comments
Post a Comment