EasyUI Forum
May 15, 2024, 12:20:55 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Add icon to iconCls  (Read 6823 times)
Steve2106
Newbie
*
Posts: 20


View Profile Email
« 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.
Logged
jahangir
Jr. Member
**
Posts: 51



View Profile Email
« Reply #1 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;
}

Logged
Steve2106
Newbie
*
Posts: 20


View Profile Email
« Reply #2 on: November 08, 2019, 02:26:50 PM »

Hi Jahangir,

Thank you for your help, all working now.

Best Regards,

Steve.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!