0 Replies Latest reply on Dec 21, 2008 11:00 AM by Anatol Sinitsky

    How to collapse rich:dropdownMenu onclick event

    Anatol Sinitsky Newbie

      Hello. I need to create menu-button control, which is look like the general button, but when the user clicks on it the menu list expands, and when the user clicks on the button again the menu list collapsed.

      I've found the rich:dropdownMenu element, which is generally expands menu items on mouse over event and collapses them on mouse out. We can also change event for menu appearance using event attribute(<rich:dropdownMenu event="onclick"/> will expand menu list on mouse click). But how to collapse it on click? I wich <rich:dropdownMenu> has an attribute similar to event, which is aimed to hide menu items, but all I managed to find is hideDelay attribute, which only specify the time when menu should be collapsed after mouse out...