我正在尝试创建折叠和展开根本不起作用的手风琴布局。我正在使用ext-4.1.0。Ext Js 4.1手风琴布局展开收起不工作
我已经创建了一个视图,并使用控制器将此视图添加到另一个面板。在添加collpase并展开后出现奇怪的行为。 +图标不会更改为 - 并且不会在第二次点击时展开。
下面是代码
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
}]
});
刚造访的1个链接(http://www.sencha.com/forum/showthread.php?247396-4.1.3-Accordion-Layout-not-working-when-dynamically-adding-items),但没有帮助。
在此先感谢您的帮助