开发者

How can I set attributes on <ul> tag that MvcConrib's MenuBuilder rendered?

开发者 https://www.devze.com 2022-12-18 05:03 出处:网络
I开发者_StackOverflow中文版 use this code the render the menu <% Html.Menu(GridSampleMenu.AdminMenu(Url)); %>

I开发者_StackOverflow中文版 use this code the render the menu <% Html.Menu(GridSampleMenu.AdminMenu(Url)); %> but I don't see any option to set the id on the rendered ul tag.

Are this is a known limit?


There is no option out of the box to specify attributes on the elements that the Menu rendered, and I found this MenuBuilder very limited in this kind of functionality.

So, when I need this heavy attributes in any element, I just do it with regular typed HTML.

0

精彩评论

暂无评论...
验证码 换一张
取 消