0
我有一个FormPanel,其中包含多个文本框项目和一个包含组合框和按钮的字段集。该字段集具有列布局,以便并排显示组合框和按钮。但是,fieldset的字段标签不显示,即使它位于FormPanel中。当我制作字段集的布局表单时,只会出现标签分隔符。这是为什么发生?有没有更好的方式来获得一个表单与几个文本框,然后并排组合框和按钮?ExtJS FieldSet fieldLabel不显示在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
}
]
}
]
});