Hi Freddy,
Adding "selected" should be useful or the Menu could be enhanced to
render its attribute Map to the buffer. That way a subclass should be
able to manipulate the attributes e.g. set the necessary CSS classes.
You could also nab the Menu[1] available at the ClickClick project[2]
which can render a menu hierarchy (vertical or horizontal) of 4 levels
deep using only CSS (and a little JS for IE6).
A screenshot of the menu is available on the project homepage.
kind regards
bob
[1]:
http://code.google.com/p/clickclick/source/browse/#svn/trunk/clickclick/core/src/net/sf/clickclick/control/menu
[2]: http://code.google.com/p/clickclick/
Freddy Daoud wrote:
Hi gang,
Apologies if this has already been addressed (my search on the archives did not
bear fruit).
Any chance of having the Extras Menu control render a selected class by default
on the menu for which isSelected() returns true? i.e.
a class="selected" ...
This would be nice because you could just iterate over the menus and render
each with $menu, instead of having to write an if/else block and render the
link "by hand" for the selected menu. Note that I don't mind the if/else block,
but rather that there's no easy way to inherit the default rendering and just
adding the "selected" class on the selected menu. (Correct me if I'm wrong.)
Thanks for your help!
Cheers,
Freddy