sencha-touch-1.1-selectfield(combobox)如何设置默认选项
2011-12-15 16:53
417 查看
Sencha Touch 交流 QQ 群 224711028
1.将value为grid的option设置为默认项
参考:http://stackoverflow.com/questions/7595669/how-to-make-the-default-text-in-a-select-field-grey-like-the-placeholder-for-tex
1.将value为grid的option设置为默认项
Ext.getCmp('viewPortSelect').setValue('grid');2.从controller覆盖原有option
Ext.getCmp('theSelect').setOptions( [ {text: 'First Option', value: 'first'}, {text: 'Second Option', value: 'second'}, {text: 'Third Option', value: 'third'} ]);
参考:http://stackoverflow.com/questions/7595669/how-to-make-the-default-text-in-a-select-field-grey-like-the-placeholder-for-tex
相关文章推荐
- 如何动态载入到sencha-touch的combobox(selectfield)中
- sencha-touch1.1-combobox(selectfield)如何获得选中的value
- datagrid中combobox无论选哪一个选项都显示第一个选项 以及 如何设置默认显示项
- HTML中的<select>标签如何设置默认选中的选项
- HTML中的<select>标签如何设置默认选中的选项
- sencha-touch-1.1如何动态更新panel的title
- sencha-touch-1.1 控件如何加载事件
- HTML中的<select>标签如何设置默认选中的选项
- ExtJS Combobox 如何设置默认和取值问题
- sencha-touch1.1中如何对list表item进行选中
- sencha-touch-1.1 动态绑定selectfield
- sencha-touch1.1中如何点击button弹出一个"popup" panel
- ExtJS Combobox 如何设置默认和取值问题
- ExtJS Combobox 如何设置默认和取值问题
- 如何默认勾选“设置-情景模式”菜单下面的BesAudEnh选项?
- 在sencha-touch-1.1中如何使用localstorage
- silverlight - DataForm 添加数据时(单独添加页面)增加ComboBox 的方法以及设置默认选项 (备忘)
- ExtJS Combobox 如何设置默认和取值问题
- sencha-touch-1.1中定义selectfield的一个例子
- HTML中的<select>标签如何设置默认选中的选项