OMSS.MainPanel = Ext.extend(Ext.Panel, {
...
dataList: {},
detailShow: {},
...
initComponent: function() {
...
this.store =new Ext.data.Store({
proxy: new Ext.data.HttpProxy({}),
reader: new Ext.data.JsonReader({}),
listeners: {
'load': function(store) {
//OMSS.MainPanel.prototype.showDetail();
}
}
});
...
this.dataList.gridPanel =new Ext.grid.GridPanel({
...
listeners: {
'rowclick': function(grid, rowIndex, e) {
//OMSS.MainPanel.prototype.showDetail();
},
'keydown': function(e) {
if (e.keyCode == Ext.EventObject.DOWN || e.keyCode == Ext.EventObject.UP) {
//OMSS.MainPanel.prototype.showDetail();
}
}
}
});
this.detailShow.panel =new Ext.TabPanel({...}); },
showDetail: function() {
contentPanel =this.detailShow.panel;
}
});
我想在三个事件中调用showDetail方法。各位DX,谁知道怎么调?
不懂……