Collapse

ui:collapse

Indicates that the ui:menuList component is collapsed.

This event is fired when you collapse the ui:menuList component. To set a handler for the ui:collapse event, use the menuCollapse attribute on ui:menuList.

The following example adds or remove a CSS class to the ui:menuList component when it's collapsed or expanded.

Here's the client-side controller that handles the adding and removing of the CSS classes.

If you're using this event with a component other than ui:menuList, register the event first.

No specifications to show