var me = this,
menu = me.menu;
// prevent default right click behaviour
event.stopEvent();
if (!menu) {
menu = me.menu = Ext.create('Ext.menu.Menu', {
items: [
{ itemId: 'delete', text: 'delete',
icon: 'resources/css/images/tree/drop-yes.gif',
handler: function() {
me.getStore().remove(menu.contextRecord);
}
}
]
});
}
// menu.contextRecord = record;
menu.showAt(event.getXY());
},
itemclick: function ( grid, record, item, index, e, eOpts ) {
console.log('argumentsargumentsargumentsargumentsargumentsargumentsargumentsargumentsargumentsarguments==>'+arguments);
this.fireEvent('itemcontextmenu', grid, record,item, index, e, eOpts);
}
댓글 없음:
댓글 쓰기