日期:2014-05-16 浏览次数:20441 次
Ext.define('Qui.view.MonitoringMenu', { extend: 'Ext.menu.Menu', alias: 'widget.MonitoringMenu', requires: [ 'Ext.menu.Item' ], initComponent: function() { var me = this; Ext.applyIf(me, { items: [ { xtype: 'menuitem', handler: function(item, e) { ... }, text: 'Cancel job' }, { xtype: 'menuitem', handler: function(item, e) { ... }, text: 'Cancel job group' }, { xtype: 'menuitem', handler: function(item, e) { ... }, text: 'Run now' } ] }); me.callParent(arguments); }, callback: function() { ... }, onDlgClose: function(comp,opts) { ... } });
"#monitoringJogGridView": { itemcontextmenu: this.onMonitoringJogGridViewItemContextMenu }
var me = this; e.stopEvent(); if (me.menu === undefined){ me.menu = Ext.widget('MonitoringMenu'); } dataview.select(index); me.menu.showAt(e.getXY()); return false;