版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Momo_Joanne/article/details/80769099
new Ext.form.FieldSet({
title : '更多内容...点击伸缩',
collapsible : true,
collapsed : true,
titleCollapse : true,
listeners : {
collapse : function() {
Ext.getCmp('myquery').setHeight(165);
Ext.getCmp('viewPort').doLayout();
},
expand : function() {
Ext.getCmp('myquery').setHeight(270);
Ext.getCmp('viewPort').doLayout();
}
}
效果