使用Ext JS 2.3.0我创建了一个看起来像这样的FieldSet
我希望删除条件按钮显示在输入字段下面而不是标签下,我的代码是:
var kpiUpper = new Ext.form.TextField({
fieldLabel: "Higher",
name: 'upperBound',
allowBlank: true
});
var kpiFilterFieldset = new Ext.form.FieldSet({
jsonForm: true,
jsonType: 'object',
jsonName: 'kpiFilter',
title: locale['label.kpi.condition'],
checkboxToggle: true,
collapsed: true,
autoHeight:true,
items : [
/* code to add first input box and combo box omitted */
kpiUpper,
{
xtype: 'button',
text: 'Remove Condition',
}
]
});
答案 0 :(得分:1)
试试这个:
{
xtype : 'button',
text : 'Remove Condition',
fieldLabel : ' ',
labelSeparator : ''
}
答案 1 :(得分:0)
也许你可以试试
{
xtype: 'button',
text: 'Remove Condition',
margins: '20 0 0 20'
}