PDA

View Full Version : How to remove "Collapse" icon from the panel which is inside the accordion panel.



peek4y
13 Aug 2012, 9:44 PM
Hello,
I've an item, inside the accordion panel which is a tabpanel.
I've got a problem here, i am not able to remove the "collapse" tool/icon from the panel which is present inside the accordion panel.

here is the code for the item list inside the accordion panel.

me.items = [{ xtype: 'tabpanel',
tabPosition: 'bottom',
cls: 'bottom-reportab',
items: [{ iconCls: 'left-reportsicon', xtype: 'left-reportslist'


},
{ title: 'Settings',
iconCls: 'left-settingsicon'
}]


}];

Is there any config to hide the item panel's header? so that the icon is also hidden.

Thank You.

sword-it
14 Aug 2012, 12:31 AM
Hi,

If you want to hide the collapse icon give "hideCollapseTool : true" config to your tabpanel.

For more detail see - http://docs.sencha.com/ext-js/4-1/#!/api/Ext.layout.container.Accordion-cfg-hideCollapseTool

peek4y
15 Aug 2012, 11:18 PM
Thank you! :D