AlexFF1
AlexFF1

Reputation: 1283

Add badge to angular prime ng split button dropdown

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

Answers (1)

AlexFF1
AlexFF1

Reputation: 1283

seems like its only supported on premium PrimeNG Themes

Upvotes: 1

Related Questions