I wonder how I can close the menu tree when an action was chosen
ItemMenu-1 ItemMenu-2 ItemMenu-3
|----subMenu
|----subMenu2--|--action 1
!--action 2
on click action 2 the menu returns to
ItemMenu-1 ItemMenu-2 ItemMenu-3
problem menu
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
-
- Posts: 130
- Joined: 17 Dec 2021, 09:33
Hi,
There are two ways doing that.
1- By setting hideOnOutsideClick to true in styleClass module ([hideOnOutsideClick]="true")
2- By implementing your own custom logic to manage menu and submenu states.
hideOnOutsideClick property will close all the opened menu items by clicking anywhere outside the container.
As far as I understand, you probably seek a custom solution for the feature that PrimeBlocks do not offer, if this is the case, please implement your custom logic to manage show & hide depending on your actions.
Regards
There are two ways doing that.
1- By setting hideOnOutsideClick to true in styleClass module ([hideOnOutsideClick]="true")
2- By implementing your own custom logic to manage menu and submenu states.
hideOnOutsideClick property will close all the opened menu items by clicking anywhere outside the container.
As far as I understand, you probably seek a custom solution for the feature that PrimeBlocks do not offer, if this is the case, please implement your custom logic to manage show & hide depending on your actions.
Regards
-
- Information
-
Who is online
Users browsing this forum: No registered users and 1 guest