Adding separators to menus through MenuModel would be nice.
Agreed, we had separators in PrimeFaces, why not for PrimeNG as well.
I would like to see this feature as well
+1
Planned for 4.0.1.
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;
}
Will do it for 4.0.3.
you can add { separator: true } to your items array
Most helpful comment
Planned for 4.0.1.