0
我在窗口中设置了手风琴布局。我不希望第二个面板被扩大。 我试过防止展开面板
var intermodPanel = {
xtype : 'panel',
title : 'unexpandable panel',
listeners : {
beforeactivate : function(){
return false;
}
}
}
但它不起作用。我正在研究Extjs 4.2。
另外,也没有显示我的“加”和“减”在标题的右边的图标,是不是我已经错过了?
var winPort = Ext.create('widget.window', {
id: 'win' + pointcode,
title: 'a Window' ,
autoScroll: true,
header: {
titlePosition: 2,
titleAlign: 'center'
},
closable: true,
closeAction: 'hide',
width: 822,
height: 533,
layout: 'accordion',
layoutConfig : {
animate : true
},
items : [expandablePanel, unexpandablePanel, expandablePanel]
}).show();
谢谢
我可以在您的代码中看到加号和减号在这个http://jsfiddle.net/1n1uz80h/中 – 2014-09-23 13:49:01