Ext.form.field.ComboBoxView
xtype: combobox, combo
A combobox control with support for autocomplete, remote loading, and many other features.(一个组合框控件支持自动完成、远程加载,以及许多其他功能。)
A ComboBox is like a combination of a traditional HTML text <input>
field and a <select>
field; the user is able to type freely into the field, and/or pick values from a dropdown selection list.(一个组合框就像传统的HTML文本< input >字段和< select >字段的组合,用户可以自由地输入领域或从下拉框中选择列表值。) The user can input any value by default, even if it does not appear in the selection list; to prevent free-form values and restrict them to items in the list, set forceSelection to true
.(用户默认情况下可以输入任何值,即使它不出现在选择列表,要防止自由格式的值和限制它们为列表中数据项,可以把forceSelection设置为true。)
The selection list's options are populated from any Ext.data.Store, including remote stores.(选择列表的选项可以从任何Ext.data.Store中填充,包括远程的stores) The data items in the store are mapped to each option's displayed text and backing value via the valueField and displayField configurations, respectively.(store的数据项映射到每个选项的显示文本和背后文本是通过分别进行valueField和displayField配置,)
If your store is not remote, i.e. it depends only on local data and is loaded up front, you should be sure to set the queryMode to 'local'
, as this will improve responsiveness for the user.(如果你的store并不是远程的,例如,它只取决于本地数据和预先加载,您应该确保设置了queryMode为“本地”,因为这将为用户提高响应能力。)
转载于:https://blog.51cto.com/gzzjsoft/1030652