combobox
select( Ext.form.ComboBox combo, Ext.data.Record record, Number index )
beforeselect( Ext.form.ComboBox combo, Ext.data.Record record, Number index )
beforequery( Object queryEvent )
beforeselect( Ext.form.ComboBox combo, Ext.data.Record record, Number index )
clearValue( ) : void 清除所有当前字段中设定的 |
| |
| getStore( ) : Ext.data.Store 返回Combo关联的Store对象。Returns the store... 返回Combo关联的Store对象
|
|
| getValue( ) : String 返回当前选定项的值或在没有选定项时返回空字串。Returns the ... 返回当前选定项的值或在没有选定项时返回空字串
|
|
| isExpanded( ) : void 如果下拉列表已经展开则返回true,否则返回false。Returns... 如果下拉列表已经展开则返回true
|
|
| reset( ) : void 将字段值重置为原始值,并清除所有效验信息。如果原始值为空时还将使 em... 将字段值重置为原始值,并清除所有效验信息。如果原始值为空时还将使 emptyText 和 emptyClass 属性生效。
|
|
| select( Number index , Boolean scrollIntoView ) : void 根据列表的索引数选择下拉列表中的一项。本函数不会触发 'select'... 参数项: o index : Number 选中项在列表中以0开始的索引数。The zero-based index of the list item to select o o scrollIntoView : Boolean 值为false时阻止下拉列表自动滚动到选中项位置(默认为 true)。False to prevent the dropdown list from autoscrolling to display the selected item if it is not currently in view (defaults to true) o 返回值: o void
根据列表的索引数选择下拉列表中的一项。本函数不会触发 'select' 事件。使用此函数必须在数据已经被读取且列表已经展开,否则请使用setValue方法
| 参数项: o index : Number 选中项在列表中以0开始的索引数。The zero-based index of the list item to select o o scrollIntoView : Boolean 值为false时阻止下拉列表自动滚动到选中项位置(默认为 true)。False to prevent the dropdown list from autoscrolling to display the selected item if it is not currently in view (defaults to true) o 返回值: o void 参数项: o index : Number 选中项在列表中以0开始的索引数。The zero-based index of the list item to select o o scrollIntoView : Boolean 值为false时阻止下拉列表自动滚动到选中项位置(默认为 true)。False to prevent the dropdown list from autoscrolling to display the selected item if it is not currently in view (defaults to true) o 返回值: o void
|
| selectByValue( String value , Boolean scrollIntoView ) : Boolean 根据数据的值选择下拉列表中的选项。本函数不会触发'select'事件。... 根据数据的值选择下拉列表中的选项。本函数不会触发'select'事件。使用此函数必须在数据已经被读取且列表已经展开,否则请使用setValue方法
|
|
| selectText( Number start , Number end ) : void 选择此字段中的文本。Selects text in this field 选择此字段中的文本
|
|
| setEditable( Boolean value ) : void 允许或防止用户直接编辑字段文本。如果传递值为false,用户将只能选择... 允许或防止用户直接编辑字段文本。如果传递值为false,用户将只能选择下拉列表中已经定义的选项
|
|
| setValue( String value ) : void 将指定的值设定到字段。如果找到匹配的值,字段中将显示相应的记录。如果在... 将指定的值设定到字段。如果找到匹配的值,字段中将显示相应的记录。如果在已有的选项中没有找到匹配的值,则显示valueNotFoundText属性指定的文本。其他情况下显示为空(但仍然将字段的值设置为指定值)。
|
|
| validateValue( Mixed value ) : Boolean 根据字段的效验规则效验字段值,并在效验失败时将字段标记为无效。Vali... 根据字段的效验规则效验字段值,并在效验失败时将字段标记为无效
|
|
如果下拉列表当前是展开状态则隐藏它。并在完成的时候触发collapse
事件