Page 1 of 1

Problem with Icons in the Menus

Posted: 09 Jul 2020, 21:06
by vithort
Hello,

I'm trying to customize some menus, but I can't load all the available FontAwesome icons (I'm testing with the free ones).

In the code below, for example, I can only see the Classroom 2 icon, the Classroom 1 icon (fa-chalkboard) does not load at all.

Could someone help me how to solve the problem and load the other icons?

ngOnInit() {
this.model = [
{
label: 'Classroom 1',
icon: 'fa fa-fw fa-chalkboard',
routerLink: ['classroom1'],
},
{
label: 'Classroom 2',
icon: 'fa fa-fw fa-desktop',
routerLink: ['classroom2'],
},
];
}

Thanx for the attention!! :)

Re: Problem with Icons in the Menus

Posted: 17 Aug 2020, 15:30
by merve7
Hi,
Atlantis PrimeNG uses FontAwesome 4.7.0 but your tried icons come with 5.0.13 therefor you need to update your FontAwesome version.

Re: Problem with Icons in the Menus

Posted: 08 Sep 2020, 21:24
by vithort
thank you for your answer...

could I update font-awesome to use these new icons?

In the documentation for font-awesome it indicates that the latest version is 4.7.0 and that they do not intend to update.



package.json {
"font-awesome": "^4.7.0",
}

Re: Problem with Icons in the Menus

Posted: 08 Sep 2020, 21:48
by vithort
I found the icons that i can use. Thank you again!

https://fontawesome.com/v4.7.0/icons/

Re: Problem with Icons in the Menus

Posted: 10 Oct 2020, 03:07
by mert.sincan
Glad to hear, thanks a lot for the update!

Best Regards,