var query_form = new Ext.FormPanel({
title: '',
renderTo:'form',//渲染到页面元素的id
frame: true,
bodyStyle: 'padding:20px 5px 0',
items:[
{
layout:'column',
items:[
{ layout:'form',
labelWidth: 60,
defaults: {width: 135},
defaultType: 'textfield',
columnWidth:.15,
items:[
{
name: 'username',
fieldLabel: '姓名'
}
]
},{
layout:'form',
labelWidth: 60,
defaults: {width: 135},
defaultType: 'textfield',
columnWidth:.15,
items:[
{
name: 'address',
fieldLabel: '地址'
}
]
},{
layout:'form',
labelWidth: 60,
defaults: {width: 60},
defaultType: 'textfield',
columnWidth:.1,
items:[
{
xtype:'button',
text: '查 询',
height:30,
name: 'query',
handler:function(){
alert('查询')
}
}
]
}
]
}
]
})
EXT 横排列表单样例
最新推荐文章于 2021-06-14 10:23:56 发布