Hello Tareq,
Thank you for contacting us.
Third party icons are supported in the Toast component. We have checked your shared example, to use the third-party icons, you need to refer the font-awesome library next to the EJ style reference as shown below.
[Index.html]
<link rel='nofollow' href="//cdn.syncfusion.com/ej2/material.css" rel="stylesheet" />
<!-- Refer the font-awesome library -->
<link rel="stylesheet" rel='nofollow' href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> |
Now, you can refer the font-awesome icons in the toast component using icon property.
[App.component.ts]
public toasts: { [key: string]: Object }[] = [
{ title: 'Success!', cssClass: 'e-toast-success', icon: 'fa fa-check', timeOut: 80000 },
]; |
We have attached a modified example for your reference, please find it in the following location
Let us know if you need any further assistance on this.
Regards,
Prince