-5

这是我所拥有的:

在此处输入图像描述

这就是我想要的:

在此处输入图像描述

这是一些代码:

                        { xtype: 'combobox', padding: 5, fieldLabel: 'Search In', store: states, displayField: 'field1', id: 'criteria_3_drop_down', hidden: true  },
                        { xtype: 'textfield', padding: 5, region: 'west', fieldLabel: 'Criteria 3', id: 'criteria_3_input', hidden: true   },
                        { xtype: 'button', text: 'Search', margin: '0 0 5 120', padding: '0 30 0 30', itemId: 'search'},
                        { xtype: 'button', text: '+', id: 'add_criteria' }

有任何想法吗?

4

1 回答 1

1

您应该使用 aFieldContainer将标准框和 + 按钮与 a 组合在一起hbox

{
    xtype: 'fieldcontainer',
    fieldLabel: 'Criteria 3',
    layout: 'hbox',
    items: [
        { xtype: 'textfield', id: 'criteria_3_input' },
        { xtype: 'button', text: '+', id: 'add_criteria' }
    ]
}
于 2013-08-01T18:42:39.093 回答