EasyUI Forum
September 13, 2025, 09:52:43 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: Set Icon TreeGrid  (Read 8367 times)
BinaryCode
Newbie
*
Posts: 38


View Profile
« on: December 07, 2015, 07:26:25 AM »

Howto set treegrid icon with <img src='image/somefile.png'>, i dont want use iconCls ?
Logged
devnull
Sr. Member
****
Posts: 431


View Profile
« Reply #1 on: December 07, 2015, 10:18:36 PM »

The icon images are background images, not image tags.

Any reason you don't want to use a class name instead, you can create your own style.css

Code:
.icon-add	           { background: url('../icons/add_cross.png')}
.icon-address    { background: url('../icons/address.png')}
.icon-admin    { background: url('../icons/folder_wrench.png')}
.icon-attach    { background: url('../icons/pclip_add.png')}

or you can also use the aicon feature which does not require a css rule to be created:

http://www.jeasyui.com/forum/index.php?topic=4234.msg10828#msg10828

Cheers



Logged

-- Licensed User --
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!