» Forums
» DynarchMenu forum
» Support
» Changing the menu title
Changing the menu title
2006/12/12 21:52
Viewed 2621 times
Replies: 1/2

Hi,

I am trying to make the HMenu mimic dropdown (SELECT element) behaviour. The client has asked for it to appear as a dropdown menu, but which supports hierarchical submenus.
This is reasonably easy in terms of giving it the same UI etc, but when I select an item in the list, the menu title needs to change so that users can see what they've selected.

Changing the original A element which provided the title does not change the menu title, which is predictable since the menu has already been generated from the source HTML.  Is there an exposed method or hack which will allow me to change this title?

Thanks,

Giles

Re: Changing the menu title
2006/12/18 12:38
Viewed 3859 times
Replies: 1/1

Take a look at our toolbar sample, it does exactly that in the font or font size menus.

The idea is to get a reference to the menu item and use setLabel:

var item = menu.items["item-id"];
item.setLabel("whatever");

last
Re[2]: Changing the menu title
2006/12/18 18:41
Viewed 5075 times
Replies: 0/0

Thanks very much for this, no problems implementing it!

Giles

last
Google