hello,
I am creating a Ext.Application that creates a Viewport that Contains a view of aPanel (MainPanel). In defining the Application I give the controllers. inside my panel I have a tbar that has a menu of buttons like so:
Code:
tbar: [
{
text: "Action Menu",
menu: [{ text: 'InstructionManagement', action: '1' }, { text: 'ProductManagement', action: '2' }]
}
]
In the controller for the MainPanel, I can capture the events for the Panel and any buttons I directly place in the panel, or on the tbar. but what I cannot capture are the events from the buttons inside the menu.
I have tried:
Code:
'MainView > menu button[action=1]': {
click: this.showInstructionManagement
}
'MainView > tbar > menu button[action=1]': {
click: this.showInstructionManagement
},
'MainView button[action=1]': {
click: this.showInstructionManagement
},
but none of those works. Can someone please tell me the proper way to do this.
thx
Timothy