PDA

View Full Version : Custom icon for Tree



Zolotoy
14 Feb 2013, 1:48 PM
How can I have different icons for nodes in the tree?

akosipotpot
14 Feb 2013, 11:01 PM
Hope this will help :D

{
text : "Sample",
iconCls:'modifiedIcon',
id : "test"
}

//css

.modifiedIcon{
background: url("../../images/test.png") !important;
height:10px;//your desire height and width
width:10px;
}

sword-it
16 Feb 2013, 12:31 AM
Hi Zolotoy
you can also try the following link
http://www.sencha.com/forum/showthread.php?138427-How-to-set-custom-icon-for-tree-node-in-ExtJS-4