内联组合框

时间:2012-05-28 21:23:32

标签: extjs combobox extjs4

在ExtJS4中生成内联组合框控件的最佳方法是什么?

示例代码:

        xtype:'container',
        items:[{
            xtype:"component",
            html:"this is some text that should appear before the combo: "
        },{
            xtype:'combo',
            queryMode: 'local',
            typeAhead: true,
            grow:true,
            store:["Alabama Alabama Alabama Alabama Alabama Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Georgia"]
        },{
            xtype:"component",
            html:"this is some text that should appear after the combo."
        }]

期望的输出:

this is some text that should appear before the combo:<combobox> this is some text that
should appear after the combo.

1 个答案:

答案 0 :(得分:1)

将以下内容添加到顶级容器中:

layout: {
   type: 'hbox'
}