Root menu static mode toggle icon

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
EverJoin
Posts: 2
Joined: 29 Sep 2021, 08:19

29 Sep 2021, 08:38

Hi, I am an user and want to know how to add toggle (expand/collapse) to root menu in static mode, just like other submenu, so root menu can also expand and collapse? See bellow demo, red toggle icon to root menu. Thanks

Hierarchy. V
submenu1 v
submenu2. v

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

01 Oct 2021, 16:18

Hi,

Sorry but root menuitems are not collapsable, this situation is related to design.
But, you can create general/parent menuitem like the below screenshot;
Image

Best regards,
Merve Özçifçi

EverJoin
Posts: 2
Joined: 29 Sep 2021, 08:19

04 Oct 2021, 03:59

Hi,

I tried, but when you switch from static to either horizontal or slim, this specific item shows nothing(actually root/parent menu becomes submenu) please see image below, is there a way to fix (like onClick horizontal and re-init menu to return differently)? Thanks
Image

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

25 Oct 2021, 14:15

Hi,
Sorry but as I said before this is related to design.
Maybe you can use different menu items array like this.staticModel, this.horizontalModel etc..

Best regards,
Merve Özçifçi

Post Reply

Return to “Ultima - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests