Skip to content

Instantly share code, notes, and snippets.

@manduks
Last active April 12, 2017 16:06
Show Gist options
  • Save manduks/573e16a7297cc04983c54da8cf5a77ad to your computer and use it in GitHub Desktop.
Save manduks/573e16a7297cc04983c54da8cf5a77ad to your computer and use it in GitHub Desktop.
itemcontextmenu: function(tree, record, item, index, e, eOpts) {
// Optimize : create menu once
var position = e.getXY();
var menu_grid = new Ext.menu.Menu({
items: [{
text: 'More details',
handler: function() {
console.log("Moreils");
}
}]
});
e.stopEvent();
menu_grid.showAt(position);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment