PDA

View Full Version : how to set invisible a context menu



flamant
10 Nov 2010, 9:02 AM
Hi,

I have a context menu on a panel (scope is a panel) :



scope.body.on('contextmenu', function(evt, elRef) {
evt.stopEvent();
.........
some code
.........
});


in that panel I have some fields on which I have also a context menu



var elt = field.getEl();
elt.on('contextmenu', function(evt, elRef) {
evt.stopEvent();
.....................
I would like to put some code here to set invisible the panel context menu
.....................
})


If I right click on a field, I am trying to display the field context menu and set the panel context menu invisible

Thank you in advance for your answers