新手Ext问题:new Ext.form.FormPanel 中怎么强制换行
varreaderRegistForm=newExt.form.FormPanel({renderTo:'readerRegistFormPanel',frame:tru...
var readerRegistForm=new Ext.form.FormPanel({
renderTo:'readerRegistFormPanel',
frame: true,
collapsible:true,
labelAlign:'right',
buttonAlign:'center',
autoHeight: true,
items:[{
layout:'column',
items:
[
{
width:190,
layout: 'form',
labelWidth:90,
items:
[{
fieldLabel: '基站ID',
name:'readerid',
xtype: 'numberfield',
selectOnFocus:true,
anchor: '90%'
}]
},{
width:75,
items:
[
new Ext.Button({
text:'清 空',
handler:function(){
readerRegistForm.getForm().reset();
}
})
]
} ]
}]
});
想强制把 清空放到下一行 怎么办 求高手指教 展开
renderTo:'readerRegistFormPanel',
frame: true,
collapsible:true,
labelAlign:'right',
buttonAlign:'center',
autoHeight: true,
items:[{
layout:'column',
items:
[
{
width:190,
layout: 'form',
labelWidth:90,
items:
[{
fieldLabel: '基站ID',
name:'readerid',
xtype: 'numberfield',
selectOnFocus:true,
anchor: '90%'
}]
},{
width:75,
items:
[
new Ext.Button({
text:'清 空',
handler:function(){
readerRegistForm.getForm().reset();
}
})
]
} ]
}]
});
想强制把 清空放到下一行 怎么办 求高手指教 展开
1个回答
展开全部
我建议把button放到form里面.如下
var readerRegistForm=new Ext.form.FormPanel({
renderTo:'readerRegistFormPanel',
frame: true,
collapsible:true,
labelAlign:'right',
buttonAlign:'center',
autoHeight: true,
items:[
....
],
buttons:[{
text:'清 空',
handler:function(){
readerRegistForm.getForm().reset();
}
}]
var readerRegistForm=new Ext.form.FormPanel({
renderTo:'readerRegistFormPanel',
frame: true,
collapsible:true,
labelAlign:'right',
buttonAlign:'center',
autoHeight: true,
items:[
....
],
buttons:[{
text:'清 空',
handler:function(){
readerRegistForm.getForm().reset();
}
}]
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询