PDA

View Full Version : Sencha touch Container collapsible



Sameer Khan
7 Dec 2011, 2:21 AM
Hi, I want to use collapsible in my panel for all the containers...But there is no such option to do collapsible for container / fieldset... How can i do that ? But in Ext Js support is there ?
Any body please give me solution...

Awaiting for your reply...Thanks...

Following is my code :
{
xtype: 'container',
layout:'hbox',
margin:'5 0 0 0',
items:[{
xtype: 'component',
html:'<h2 class="fieldbar">MSW referral needed for?</h2>',
flex:1.08,
},{
xtype: 'textfield',
name: 'communitymsw',
labelWidth:'50%',
flex:0.5,
},{
xtype: 'component',
html:'<h2 class="fieldbar">&nbsp;</h2>',
},{
xtype: 'selectfield',
name: 'communityselect6',
store:immunization,
valueField:'val',
displayField:'lbl',
flex:0.55,
labelWidth:'50%'
}]
},

mitchellsimoens
9 Dec 2011, 11:02 AM
You have to set the height of the panel. By default there is no animation but if you setup the CSS transforms to translate it via the width it will animate.

Sameer Khan
9 Dec 2011, 6:30 PM
Hi thanks for the reply...

I need some sample code on my above example..If possible plz give some code on it...

Awaiting for your reply