简体   繁体   English

如何从标记禁用YUI MenuBarItem

[英]How to disable a YUI MenuBarItem from markup

I prefer creating my nav menus from markup (rather than Javascript), like in this example . 我更喜欢从标记(而不是Javascript)创建导航菜单,如本例所示 Is it possible to create menus and/or menu items from markup which are disabled? 是否可以从标记创建被禁用的菜单和/或菜单项? I see how to use Javascript to do this (use the disabled config property ), but I'm looking for some way to encode this information in markup - perhaps there's a CSS class to use? 我看到了如何使用Javascript来做到这一点(使用disabled config属性 ),但是我正在寻找某种方式在标记中对该信息进行编码-也许有一个CSS类可以使用? Or am I out of luck here? 还是我不走运?

Sorry, it was bugged but shot down. 抱歉,它被窃听了但是被击落了。

http://yuilibrary.com/projects/yui2/ticket/2527643 http://yuilibrary.com/projects/yui2/ticket/2527643

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM