Primeng: Badges for menu components

Created on 24 Oct 2017  路  6Comments  路  Source: primefaces/primeng

I'm submitting a ... (check one with "x")

[ ] bug report => Search github for a similar issue or PR before submitting
[x] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

FEATURE REQUEST: I'm tasked with coming up with badge functionality for p-menubar.

  1. Are there currently any plans to add that functionality in the future?
  2. Is there a way I can pass an identifier in for a top-level menu item?

Love this library, thanks!

tvg

new feature

Most helpful comment

Unfortunately, these properties are ignored in the PrimeNG MenuItem template. It would be easy and very helpful to add something like <span class="ui-menuitem-badge" *ngIf="item.badge" [ngClass]="item.badgeStyleClass">{{item.badge}}</span> to the template.

All 6 comments

We'll add badges to all menus so expanding the issue.

Do you have any plan to include this in version 6?

I'm using PrimeNg 7.
I can see that there's a property "badge" in the interface "MenuItem".
Is the functionality implemented in version 7?

@JanRAndersson seems 'badge' & 'badgeStyleClass' are used only in premium templates..

Unfortunately, these properties are ignored in the PrimeNG MenuItem template. It would be easy and very helpful to add something like <span class="ui-menuitem-badge" *ngIf="item.badge" [ngClass]="item.badgeStyleClass">{{item.badge}}</span> to the template.

Whats going on with this? On 11.0 and the badge stuff is still ignored

Was this page helpful?
0 / 5 - 0 ratings