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
what I want to know is how I close, everything and return to the original state without having to click outside of the menu
Hide the menu when an action was chosen
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,
It's hard to understand which block you're mentioning but as far I understand, you can use [hideOnOutsideClick]="true" if you're using styleClass to open the menu.
Regards
It's hard to understand which block you're mentioning but as far I understand, you can use [hideOnOutsideClick]="true" if you're using styleClass to open the menu.
Regards
-
- Posts: 130
- Joined: 17 Dec 2021, 09:33
Hi,
You need to implement your own show/hide logic to achieve this without using hideOnOutsideClick property in styleClass module. As far as I understand you want to close everything without clicking the outside of the focused container, PrimeBlocks do not offer this as a feature as a user you need to implement custom logic.
Regards
You need to implement your own show/hide logic to achieve this without using hideOnOutsideClick property in styleClass module. As far as I understand you want to close everything without clicking the outside of the focused container, PrimeBlocks do not offer this as a feature as a user you need to implement custom logic.
Regards
-
- Information
-
Who is online
Users browsing this forum: No registered users and 2 guests