Page 1 of 1

How to use babylon with material Icons or custom icons

Posted: 02 Feb 2021, 18:37
by eitner2009
Please some help how i can use material icons with menuitem in babylon or maybe use a custom icons

Re: How to use babylon with material Icons or custom icons

Posted: 03 Feb 2021, 09:44
by siris
Hi,

@merve Could you please check this issue?

Best Regards,

Re: How to use babylon with material Icons or custom icons

Posted: 09 Feb 2021, 09:11
by merve7
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'})