日期:2014-05-16  浏览次数:20364 次

Extjs 4 如何让‘accordion’布局的子元素默认展开多个?
如题,求怎么实现?panel的主要设置:xtype: 'panel',
            layout:{
        type: 'accordion',
        animate: true
    },
    defaults:{  
collapsed:false  
},
autoScroll : true,
fill:false,
panel的items的设置:{
     xtype:'panel',
    bodyPadding: 5,  // 避免Panel中的子元素紧邻边框
    width: 770,
    title: 'test1',
    collapsed:false,
    layout:'column',
    autoScroll : true,
    height: 600,
    items: [
     {
        xtype: 'datefield',
        labelWidth:80,
        fieldLabel: 'Start date'
    },{
        xtype: 'datefield',
        labelWidth:80,
        fieldLabel: 'End date'
    }]
     }
------解决方案--------------------
 layout:{
        type: 'accordion',
        multi: true,
        animate: true
    },