给你个例子吧:
var Form1 = new Ext.FormPanel({
labelAlign: 'left',
autoHeight: true,
width: 513,
frame: true,
title: '设备信息',
items: [{
autoHeight: true,
baseCls: 'x-plain',
layout: 'fit',
items: [panelXXX]
}]
});
var Form2 = new Ext.FormPanel({
labelAlign: 'left',
autoHeight: true,
width: 513,
frame: true,
title: '设备信息',
items: [{
baseCls: 'x-plain',
bodyStyle: 'padding:5px',
}]
});
var newAddEquipmentWin = new Ext.Window({
applyTo: 'Equipment_window',
title: '添加设备',
layout: 'fit',
width: 530,
plain: true,
items: [Form1, Form2],
buttons: [{
text: '保存',
handler: function () {.... //自己的提交代码
}
}, {
text: '取消',
handler: function () {
newAddEquipmentWin.hide();
}
}]
});