Page 1 of 1

Add badge to side menu

Posted: 14 Oct 2021, 21:50
by ninitesSs
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

Re: Add badge to side menu

Posted: 15 Oct 2021, 09:20
by merve7
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

Re: Add badge to side menu

Posted: 18 Oct 2021, 09:22
by ninitesSs
Thanks for your fast answer !

Re: Add badge to side menu

Posted: 15 Apr 2022, 10:10
by mert.sincan
Thanks @merve7!