Last active
April 12, 2017 16:06
-
-
Save manduks/573e16a7297cc04983c54da8cf5a77ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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