Hello. I have the following code that gives me a right click on the
main application. Is it possible to constrain this function to just
once particular component like a grid? This grid is not a nested
component by the way.
function rightClick(){
var showItem = true;
var my_cm = new ContextMenu(menuHandler);
my_cm.customItems.push(new ContextMenuItem("Hello",
itemHandler));
my_cm.customItems.push(new ContextMenuItem("Click Me",
itemHandler));
my_cm.customItems.push(new ContextMenuItem("Something",
itemHandler));
my_cm.customItems.push(new ContextMenuItem("Something
else",
itemHandler));
my_cm.customItems.push(new ContextMenuItem("Abcd",
itemHandler));
my_cm.customItems.push(new ContextMenuItem("1234",
itemHandler));
function menuHandler(obj, menuObj) {
if (showItem == false) {
menuObj.customItems[0].enabled = false;
} else {
menuObj.customItems[0].enabled = true;
}
}
function itemHandler(obj, item) {
}
_root.menu = my_cm;
}
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/