我在extjs4工作。我有组件的视图为=
xtype : 'comboboxselect',
id : 'Id1',
displayField: 'emailAddress',
typeAhead: true,
editable : true,
hideTrigger:true,
forceSelection: false,
我想允许用户也输入新的emailIds。所以我保持可编辑为真。但是当我试图在sumbit按钮点击时获得组合框的选定值时,它没有给我新插入的电子邮件ID在组合框中。我尝试将其视为=
Ext.getCmp('Id1').getSubmitData() or Ext.getCmp('Id1').getRawValue()
但它没有给我新插入的emailId。那么如何在extjs4中执行此操作
答案 0 :(得分:1)
如果这是Ext.form.field.ComboBox
(xtype:'combobox'
),则getValue()
会返回组合框的当前值。有关详情,请访问sencha docs