I am trying to create an accordion layout where collapse and expand is not working at all. I am using ext-4.1.0.
I have created a View and adding this view to another panel using a controller. After adding the collpase and expand is having a weird behaviour. + icon is not changing to - and not expanding on 2nd click.
Here is the code
Ext.define('AM.view.MyView' ,{
extend:'Ext.panel.Panel',
title: 'Accordion Layout',
alias:'widget.myView',
layout: {
type: 'accordion',
titleCollapse: false,
animate: true,
activeOnTop: true
},
width:300,
height: 300,
defaults: {
bodyStyle: 'padding:15px'
},
items: [{
title: 'Panel 1',
html: 'Panel content!',
floatable:false
},{
title: 'Panel 2',
html: 'Panel content!',
floatable:false
},{
title: 'Panel 3',
html: 'Panel content!',
floatable:false
}]
});
Just visted 1 link (http://www.sencha.com/forum/showthread.php?247396-4.1.3-Accordion-Layout-not-working-when-dynamically-adding-items) but no help.
Thanks in advance for your help