Hello
How can I define activeIndex for avalone menu ( <pa:menu>) component?
Thanks
Arseniy Isakov
Avalon JSF 1.0.8 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: 5281
- Joined: 29 Jun 2013, 12:38
Hi,
Please add the following css code in your project;
Then, you can add "active-menuitem" class to p:menuitem to open each menuitem.
Best Regards,
Please add the following css code in your project;
Code: Select all
body .layout-wrapper .layout-menu li.active-menuitem > ul {
display: block;
}
Best Regards,
Github Profile: https://github.com/mertsincan
-
- Posts: 4
- Joined: 11 Apr 2019, 03:23
Hello
Yes this method works for initial setup of active items.
But unfortunately I cannot override from model active item which was selected before. I am using DefaultMenuModel class to define menu model
Thanks
Arseniy Isakov
Yes this method works for initial setup of active items.
But unfortunately I cannot override from model active item which was selected before. I am using DefaultMenuModel class to define menu model
Thanks
Arseniy Isakov
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Hi,
Please use defaultmenuitem.setContainerStyleClass("active-menuitem") in your model.
Best Regards,
Please use defaultmenuitem.setContainerStyleClass("active-menuitem") in your model.
Best Regards,
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 2 guests