Reputation: 1283
I try to add badge to a split button drop down, but the badge property does not seem to display, do I miss something?
as you can see it only displays icon, label but no badge number
[![badge][1]][1]
template
<p-splitButton label="Save" icon="fa-check" (onClick)="save()"
[model]="items"></p-splitButton>
ts
items: MenuItem[];
this.items = [
{label: 'Update', icon: 'fa-refresh', badge: "23"}, //does not display badge number
];
the documentation of MenuItem[] states that it has "badge" property. SplitButton docs
Upvotes: 0
Views: 3135