Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separators in MenuModel #888

Closed
glubbert opened this issue Sep 12, 2016 · 7 comments
Closed

Separators in MenuModel #888

glubbert opened this issue Sep 12, 2016 · 7 comments
Assignees
Labels
Type: New Feature Issue contains a new feature or new component request
Milestone

Comments

@glubbert
Copy link

Adding separators to menus through MenuModel would be nice.

@cagataycivici cagataycivici added the Type: New Feature Issue contains a new feature or new component request label Sep 12, 2016
@cagataycivici cagataycivici self-assigned this Sep 12, 2016
@cagataycivici
Copy link
Member

Agreed, we had separators in PrimeFaces, why not for PrimeNG as well.

@njifares
Copy link

I would like to see this feature as well

@Olmer1st
Copy link

+1

@cagataycivici
Copy link
Member

Planned for 4.0.1.

@ribizli
Copy link

ribizli commented May 8, 2017

Workaround in the meantime:

item = {
  disabled: true, target: 'separator'
};

with style:

.ui-menu .ui-menu-list li.ui-menuitem .ui-menuitem-link[target=separator] {
  height: 0;
  display: block;
  padding: 0;
  min-height: 0;
  border-bottom: 1px #525252 solid;
}

@cagataycivici cagataycivici added this to the 4.0.3 milestone May 31, 2017
@cagataycivici
Copy link
Member

Will do it for 4.0.3.

@benalif
Copy link

benalif commented Jun 23, 2021

you can add { separator: true } to your items array

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

No branches or pull requests

6 participants