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.
Please note that response time for technical support is within 3-5 business days.
-
- Posts: 1
- Joined: 20 Jan 2021, 16:49
Please some help how i can use material icons with menuitem in babylon or maybe use a custom icons
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
4. Lastly, change your menuitem icons. (like {label:'Dashboard', icon:'star'})
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>
-
- Information
-
Who is online
Users browsing this forum: No registered users and 11 guests