Problem with dynamic menu in template diamond 5.0 and collapsing submenu-items #441
Unanswered
consados
asked this question in
PrimeFaces Templates
Replies: 1 comment
-
I think you can just modify the DiamondMenuRenderer.java to do what you need right? The source code is included. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use the template diamond 5.0 with primfaces 13.0.3.
I would like to hide some submenus that still have child elements. In the normal p:menu there is the attribute toggleable to implement this.
The menu from the template does not have this attribute. Respectively all hierarchies are always expanded.
There was a discussion with workaround for the normal p:menu:
primefaces/primefaces#2351
If I include a normal p:menu in my sidebar, the toggleable feature works. But the menutree does not look very nice.
There is a property expanded for the submenus in the Builder-class, but this is not taken into account by the diamond-menu
Is there a solution or a workaround for the problem?
Thank you very much
Menu-controller
sidebar-menu
Beta Was this translation helpful? Give feedback.
All reactions