Ext.form.ComboBox 常用的事件和方法
2015-12-15 10:59
495 查看
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 )
如果下拉列表当前是展开状态则隐藏它。并在完成的时候触发collapse
事件
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... 根据字段的效验规则效验字段值,并在效验失败时将字段标记为无效 | |
事件
相关文章推荐
- 对数组的操作
- CentOS下安装PHP,MySQL和Nginx
- Kinect for Windows SDK开发入门(八):骨骼追踪进阶 上
- 面向对象编程
- oracle数据库之列操作
- Java设计模式之单例模式
- 相关检验
- android 内存优化
- Pandas 时间序列数据绘制X轴主要刻度和次要刻度
- 【转】android adb常用指令
- web前端H5培训开发设计师好吗
- A20 程序崩溃的调试
- Paint 分析
- 第四章 闭包
- android 自定义通用标题
- Hadley Wickham:一个改变了R的人
- 架构知识点体系
- NO JVM installation found
- javascript基本语法
- 等比例宽高不失真压缩