Extjs 内联组合框
在ExtJS4中生成内嵌组合框控件的最佳方法是什么 示例代码: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
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:发布另一个问题,并描述你到底想要实现什么,以及到目前为止你尝试了什么。