How to use babylon with material Icons or custom icons

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
eitner2009
Posts: 1
Joined: 20 Jan 2021, 16:49

02 Feb 2021, 18:37

Please some help how i can use material icons with menuitem in babylon or maybe use a custom icons

siris
Posts: 322
Joined: 29 Jul 2019, 13:57

03 Feb 2021, 09:44

Hi,

@merve Could you please check this issue?

Best Regards,

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

09 Feb 2021, 09:11

Hi,
1.Firstly, add material font files and import style in your stylesheet file.
2.Write material class in your stylesheet.
3. Add class="material-icons" in i tag in app.menuitem.component.ts file and change like that

Code: Select all

<i class="material-icons">{{item.icon}}</i>
4. Lastly, change your menuitem icons. (like {label:'Dashboard', icon:'star'})

Post Reply

Return to “Babylon - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest