View Full Version : How to add image at the top of TabPanel

14 Jul 2010, 4:46 AM
Please see the image for the requirement. I have to put image at right top of TabPanel.file:///C:/DOCUME%7E1/MANISH%7E1.MAH/LOCALS%7E1/Temp/moz-screenshot-1.png

14 Jul 2010, 6:31 AM
Can some one help me I new to Ext JS

14 Jul 2010, 7:27 AM
See the tools (http://www.sencha.com/deploy/dev/docs/?class=Ext.Panel&member=tools) config option for Ext.Panel.

See also the note in Ext.TabPanel (http://www.sencha.com/deploy/dev/docs/?class=Ext.TabPanel):

TabPanel header/footer elements

TabPanels use their header (http://www.sencha.com/deploy/dev/docs/output/Ext.Panel.html#Ext.Panel-header) or footer (http://www.sencha.com/deploy/dev/docs/output/Ext.Panel.html#Ext.Panel-footer) element (depending on the tabPosition (http://www.sencha.com/deploy/dev/docs/output/Ext.TabPanel.html#Ext.TabPanel-tabPosition) configuration) to accommodate the tab selector buttons. This means that a TabPanel will not display any configured title, and will not display any configured header tools (http://www.sencha.com/deploy/dev/docs/output/Ext.Panel.html#Ext.Panel-tools).
To display a header, embed the TabPanel in a Panel (http://www.sencha.com/deploy/dev/docs/output/Ext.Panel.html) which uses layout:'fit' (http://www.sencha.com/deploy/dev/docs/output/Ext.Container.html#Ext.Container-layout).

P.S. You might want to normally wait more than an hour and a half before bumping your thread.