Suggestion: remove p:separator from sidebar menu

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
jepsar
Posts: 166
Joined: 03 Sep 2014, 11:41
Location: NL / BE
Contact:

01 Aug 2022, 14:05

Without it you can use the rendered attribute of submenus to toggle them based on permissions, without having to do the same for a separator.

Visually the line can be added using CSS:

Code: Select all

.layout-menu > li + li {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub: https://github.com/jepsar
Spotify: 90s Rave, Acid, Trance, House

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

12 Aug 2022, 20:31

Yes, I totally agree with you but as you know this is just an option. So it can stay for now. Thanks a lot for the feedback!

Best Regards,

Post Reply

Return to “Diamond - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest