EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Steve2106 on November 07, 2019, 06:45:56 AM



Title: Add icon to iconCls
Post by: Steve2106 on November 07, 2019, 06:45:56 AM
Hi There,

Can someone tell me how I add a new icon to iconCls?

I need an icon-home for my home button.

Thanks for your help.

Best Regards,

Steve.


Title: Re: Add icon to iconCls
Post by: jahangir on November 07, 2019, 09:59:58 PM
Open icon.css file located in "easyui\themes\" folder and add css for your desired icon.

Code:

.icon-home{
   background:url('icons/home.png') no-repeat center center;
}



Title: Re: Add icon to iconCls
Post by: Steve2106 on November 08, 2019, 02:26:50 PM
Hi Jahangir,

Thank you for your help, all working now.

Best Regards,

Steve.