PDA

View Full Version : need help with yui context menu



KuN
10 Nov 2006, 7:32 AM
i have context menu. but how should i make some items in menu disabled?
i have smth like this:



oMenuItem =
new YAHOO.widget.ContextMenuItem(
aMainMenuItems[i].text,
{ disabled: true }
);

this doesnt help.
is there at least a possibility or better use another context menu script?

thanks

adityam
16 Nov 2006, 9:47 PM
Yes, its possible to disable the menu item. Take a look at this example http://developer.yahoo.com/yui/examples/menu/example11.html