Add badge to side menu

Post Reply
ninitesSs
Posts: 3
Joined: 14 Oct 2021, 21:46

14 Oct 2021, 21:50

Hi !
Simple question , before purchasing this Layout , i would like to know if it's possible to add badge to the side menu ?
I' ve tried to add { badge : "new"} to my Menuitem object in the free version and it didn't work .
Does it work with premium layouts ?
Thanks in advance for answers

merve7
Posts: 854
Joined: 12 Sep 2017, 10:44

15 Oct 2021, 09:20

Hi,

Yes, you can use all our components in our templates. Only, you need to add badge (as component or directive) in app.menuitem.component.ts file like the below code;

Code: Select all

<p-badge [value]="item.badge"></p-badge>
Best regards,
Merve Özçifçi

ninitesSs
Posts: 3
Joined: 14 Oct 2021, 21:46

18 Oct 2021, 09:22

Thanks for your fast answer !

Post Reply

Return to “Freya - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests