PDA

View Full Version : How to add icon to a panel header



pinidbest
30 Oct 2012, 6:31 AM
Hi ,
I am looking how to add a iconCls or using another way an icon to the header of the panel.
Any ideas?

Farish
30 Oct 2012, 7:32 AM
take a look at the tools config:
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.panel.Panel-cfg-tools

skirtle
30 Oct 2012, 8:22 PM
Could you clarify the question a little? Why can't you use the panel's iconCls config?

Mahesh Sakunala
30 Oct 2012, 11:48 PM
Use iconCls config in panel and write the class in css.




iconCls : 'class1',






<style>

.class1
{
background-image:url('backgroundimage.png');
}

</style>