Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs 内联组合框_Extjs_Combobox_Extjs4 - Fatal编程技术网

Extjs 内联组合框

Extjs 内联组合框,extjs,combobox,extjs4,Extjs,Combobox,Extjs4,在ExtJS4中生成内嵌组合框控件的最佳方法是什么 示例代码: xtype:'container', items:[{ xtype:"component", html:"this is some text that should appear before the combo: " },{ xtype:'combo', queryMode: 'local

在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.
这是一些应该出现在组合之前的文本:这是一些
应该出现在组合之后。

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

layout: {
   type: 'hbox'
}

你真的想把ExtJs组件放在里面吗?简单的HTML元素是不够的?嗯。。。我想那你就完蛋了(我不认为有简单的方法可以做到这一点,因为HBox不允许你再添加一行。。我想将一些表单项内联,但其他表单项应该在下面。如何简单地做到这一点?@kirlisakal:发布另一个问题,并描述你到底想要实现什么,以及到目前为止你尝试了什么。