PDA

View Full Version : accordion and active panel



tdikarim
21 Feb 2013, 3:19 PM
Hi all,

I try to add an icon at the begining header's panel on the active panel

How can I achieve that

Thanks for your help

zeeshanjeelani
21 Feb 2013, 4:14 PM
Please use
iconCls property of the Panel

Please read the documentation
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.panel.Panel-cfg-iconCls

Good Luck

vadimv
21 Feb 2013, 11:32 PM
Look in docs at tools: http://docs.sencha.com/ext-js/4-1/#!/api/Ext.panel.Tool

tdikarim
22 Feb 2013, 3:02 AM
Hi vadimv,

tools will add button "action" at the right of the header panel. I already used.

I try to add an image at the left of the header panel for indicate to the user wich panel is activate.

Thanks for your suggestion

vadimv
22 Feb 2013, 4:27 AM
hmmm...if you want only image then I can say that you can add it as you would add tools, just in this case insert a Ext.Component with autoEl to img, our you can insert an Ext.Img which is the same.


xtype:'component',
autoEl:{
tag:'img',
src:'http://www.example.com/example.jpg'
}

tdikarim
22 Feb 2013, 1:17 PM
Hi,

I have try this, but it add an icon (custom tools) at the right of the header panel

I will try to explain better what I try to do

I have an accordeon with many panel, I want to place an arrow at the left side of the header panel -> only on the active panel

42009

in this example, I want to insert dynamicaly an image on the 2nd panel at the left side of the header panel.

Thanks fyh