Primeng: Separators in MenuModel

Created on 12 Sep 2016  路  7Comments  路  Source: primefaces/primeng

Adding separators to menus through MenuModel would be nice.

new feature

Most helpful comment

Planned for 4.0.1.

All 7 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mitosandov picture mitosandov  路  3Comments

jisqaqov picture jisqaqov  路  3Comments

Helayxa picture Helayxa  路  3Comments

gatapia picture gatapia  路  3Comments

pchristou picture pchristou  路  3Comments