Suggestion: remove p:separator from sidebar menu

Post Reply
jepsar
Posts: 86
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

Post Reply

Return to “Diamond - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest