0

在 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.
4

1 回答 1

1

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

layout: {
   type: 'hbox'
}
于 2012-05-28T22:27:18.963 回答