ext的ext.window里面怎样同时显示两个表单
1个回答
展开全部
给你个例子吧:
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();
}
}]
});
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();
}
}]
});
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询