ext 表单布局问题 怎么让文本框在一行显示 button 在一行显示
展开全部
paraBaseForm=new Ext.form.FormPanel({
width:900,
height:310,
frame:true,
border:false,
bodyStyle:'background-color:#dfe8f6;border:0px;',
items:[{xtype:'panel',layout:'column',items:[{
labelAlign:"right",layout:'form',width:260,labelWidth:100,items:[
new Ext.form.TextField({
id:"info_empcode",
disabled:true,
width:150,
fieldLabel:"员工号"
})]},{
labelAlign:"right",layout:'form',width:260,labelWidth:100,items:[
new Ext.form.TextField({
id:"info_telephone",
disabled:true,
width:150,
fieldLabel:"联系电话"
})]},{
labelAlign:"right",layout:'form',width:260,labelWidth:100,items:[para_one_menus_combox]}
]},{
xtype:'panel',layout:'column',items:[{
labelAlign:"right",layout:'form',width:260,labelWidth:100,items:[
new Ext.form.TextField({
id:"info_empname",
disabled:true,
width:150,
fieldLabel:"员工姓名"
})]},{
labelAlign:"right",layout:'form',width:260,labelWidth:100,items:[
new Ext.form.TextField({
id:"info_referdicth",
disabled:true,
width:150,
fieldLabel:"咨询渠道"
})]},{
labelAlign:"right",layout:'form',width:260,labelWidth:100,items:[para_two_menus_combox]}
]},{
xtype:'panel',layout:'column',items:[{
labelAlign:"right",layout:'form',width:260,labelWidth:100,items:[
new Ext.form.TextField({
id:"info_orgnazs",
disabled:true,
width:150,
fieldLabel:"组织"
})]},{
labelAlign:"right",layout:'form',width:260,labelWidth:100,items:[
new Ext.form.TextField({
id:"info_eventnumber",
disabled:true,
width:150,
fieldLabel:"事件编号"
})]},{
labelAlign:"right",layout:'form',width:260,labelWidth:100,items:[para_que_menus_combox]}
]},{
xtype:'panel',layout:'column',items:[{
labelAlign:"right",layout:'form',width:800,labelWidth:100,items:[
new Ext.form.TextField({
id:"info_eventremark",
disabled:true,
width:800,
height:80,
fieldLabel:"事件说明"
})]}
]}]//定义在Event_List_Common.js
});
我这个是一行显示三个文本框..你要加按钮的话和文本框一样加就行了...肯定可以的....
望采纳...
width:900,
height:310,
frame:true,
border:false,
bodyStyle:'background-color:#dfe8f6;border:0px;',
items:[{xtype:'panel',layout:'column',items:[{
labelAlign:"right",layout:'form',width:260,labelWidth:100,items:[
new Ext.form.TextField({
id:"info_empcode",
disabled:true,
width:150,
fieldLabel:"员工号"
})]},{
labelAlign:"right",layout:'form',width:260,labelWidth:100,items:[
new Ext.form.TextField({
id:"info_telephone",
disabled:true,
width:150,
fieldLabel:"联系电话"
})]},{
labelAlign:"right",layout:'form',width:260,labelWidth:100,items:[para_one_menus_combox]}
]},{
xtype:'panel',layout:'column',items:[{
labelAlign:"right",layout:'form',width:260,labelWidth:100,items:[
new Ext.form.TextField({
id:"info_empname",
disabled:true,
width:150,
fieldLabel:"员工姓名"
})]},{
labelAlign:"right",layout:'form',width:260,labelWidth:100,items:[
new Ext.form.TextField({
id:"info_referdicth",
disabled:true,
width:150,
fieldLabel:"咨询渠道"
})]},{
labelAlign:"right",layout:'form',width:260,labelWidth:100,items:[para_two_menus_combox]}
]},{
xtype:'panel',layout:'column',items:[{
labelAlign:"right",layout:'form',width:260,labelWidth:100,items:[
new Ext.form.TextField({
id:"info_orgnazs",
disabled:true,
width:150,
fieldLabel:"组织"
})]},{
labelAlign:"right",layout:'form',width:260,labelWidth:100,items:[
new Ext.form.TextField({
id:"info_eventnumber",
disabled:true,
width:150,
fieldLabel:"事件编号"
})]},{
labelAlign:"right",layout:'form',width:260,labelWidth:100,items:[para_que_menus_combox]}
]},{
xtype:'panel',layout:'column',items:[{
labelAlign:"right",layout:'form',width:800,labelWidth:100,items:[
new Ext.form.TextField({
id:"info_eventremark",
disabled:true,
width:800,
height:80,
fieldLabel:"事件说明"
})]}
]}]//定义在Event_List_Common.js
});
我这个是一行显示三个文本框..你要加按钮的话和文本框一样加就行了...肯定可以的....
望采纳...
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
弄个表格放在一行就可以啦. .
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询