| Page 1 of 1 | [ 1 post ] |
|
Hi, how can I change a menuitem status to disabled after the menubar is rendered?
for istance I would like to disable the menuitem: test2 I tried YAHOO.widget.MenuManager.addMenu('xMenu') xMenu.getMenuItem('test2').cfg.setProperty("disabled", true); but dows't work thankyou in advance for any answer Rudy this is the menubar Code: <div id="mainmenu" class="yuimenubar yuimenubarnav"> <div class="bd"> <ul class="first-of-type"> <li class="yuimenuitem"><a class="yuimenuitemlabel" href="#">TEST</a> <div id="consenso" class="yuimenu"> <div class="bd"> <ul class="first-of-type"> <li class="yuimenuitem" id="test1"><a class="yuimenuitemlabel" onclick="alert('stoka')" >TEST1</a></li> <li class="yuimenuitem" id="test2"><a class="yuimenuitemlabel" onclick="" >TEST2</a></li> <li class="yuimenuitem" id="test3"><a class="yuimenuitemlabel" onclick="" >TEST3</a></li> </ul> </div> </div> </li> </ul> </div> </div> this is the script Code: xMenu = new YAHOO.widget.MenuBar("mainmenu", { position: "absolute", hidedelay: 750, lazyload: true //proprietà specificata solo nel menu.js }); xMenu.render('mydiv'); |
| Page 1 of 1 | [ 1 post ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group