Is there an easy way to get a reference to the parent MenuItem from an
itemClick MenuEvent? I know I can use parentMenu and then dig around in
the data descriptor, but it seems like there should be a cleaner way to
do this... Specifically, I want to change my parent MenuItem's label
when a certain child is chosen to reflect that selection. E.g.,

[stuff|v]
-food
--apples
--oranges
--milkshakes
-cars
--flying
--not flying
--amphibious

I want each level to remember the last selection, so if the user selects
food -> oranges and then cars -> flying, the menu would look something
like

[stuff|v]
-food (oranges)
--apples
--oranges
--milkshakes
-cars (flying)
--flying
--not flying
--amphibious

Or would this be easier through a custom data descriptor?


-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com


Reply via email to