【发布时间】:2011-06-21 15:03:36
【问题描述】:
我有一个带有多个文本字段项的 FormPanel 和一个包含组合框和按钮的字段集。字段集具有列布局,以使组合框和按钮并排显示。但是,字段集的字段标签不会显示,即使它位于 FormPanel 中。当我制作字段集的布局表单时,只出现标签分隔符。为什么会这样?有没有更好的方法让表单具有多个文本字段,然后并排组合框和按钮?
这是我所拥有的:
this.searchPanel = new Ext.FormPanel({
border: false,
frame: true,
style: 'width:50%',
bodyStyle: 'padding:6px 10px 0px 10px',
items: [{
//Several textfields
},{
xtype: 'fieldset',
border: false,
autoHeight: true,
fieldLabel: 'Sort by',
labelStyle: 'font-weight: normal',
style: 'padding:0;margin-bottom:0',
layout: 'column',
items: [
{
xtype: 'combo',
name: 'sort',
style: 'width:100%',
columnWidth: .5,
hiddenName: 'sort',
store: //Commented out for brevity
mode: 'local',
editable: false,
forceSelection: true,
triggerAction: 'all'
},{
xtype: 'button',
style: 'margin-left: 10px',
columnWidth: .5
}
]
}
]
});
【问题讨论】:
标签: extjs