How to use babylon with material Icons or custom icons

Post Reply
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

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

03 Feb 2021, 09:44


@merve Could you please check this issue?

Best Regards,

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

09 Feb 2021, 09:11

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 3 guests