Add badge to side menu

Forum rules
Please note that response time for technical support is within 3-5 business days.
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: 861
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 !

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

15 Apr 2022, 10:10

Thanks @merve7!

Post Reply

Return to “Freya - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests