problem menu

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
enunez8
Posts: 4
Joined: 29 Aug 2021, 19:25

19 Jul 2022, 08:32

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

cetincakiroglu
Posts: 130
Joined: 17 Dec 2021, 09:33

25 Jul 2022, 13: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

Post Reply

Return to “PrimeBlocks for PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests