sencha touch 的selectfield在默认情况下选取按钮为英文,如图:
[img]http://dl2.iteye.com/upload/attachment/0095/9463/c8c627b5-f3ce-3591-97be-e6f24f2c6bfd.png[/img]
1、如需将选取按钮修改为中文,可添加defaultPhonePickerConfig或defaultTabletPickerConfig配置:
[img]http://dl2.iteye.com/upload/attachment/0095/9465/55963fe6-0bf1-35f3-b416-35c5a2b28b76.png[/img]
2、也可以修改sencha touch的源代码来实现全局配置,Ext.picker.Picker文件的128行内容
[img]http://dl2.iteye.com/upload/attachment/0095/9463/c8c627b5-f3ce-3591-97be-e6f24f2c6bfd.png[/img]
1、如需将选取按钮修改为中文,可添加defaultPhonePickerConfig或defaultTabletPickerConfig配置:
{
xtype: 'selectfield',
flex: 1,
placeHolder: '请选择',
itemId: 'qd_xszlbh_sale',
cls: 'white_bg',
defaultPhonePickerConfig : {
doneButton : '确定',
cancelButton : '取消'
}
}
效果如图:
[img]http://dl2.iteye.com/upload/attachment/0095/9465/55963fe6-0bf1-35f3-b416-35c5a2b28b76.png[/img]
2、也可以修改sencha touch的源代码来实现全局配置,Ext.picker.Picker文件的128行内容
doneButton: true,
修改为
doneButton: {
text: '确定'
},