Extjs 日期选择器与翻译
我有一个日期选择器(默认值),我需要在其上将月份列转换为任何其他语言 我还没有能够访问这些字段,似乎也找不到一个合适的方法 有人知道我如何将“选择器”选项设置为我想要的选项(即翻译文本) 工作得很有魅力,很难找到合适的方法Extjs 日期选择器与翻译,extjs,sencha-touch,sencha-touch-2,sencha-architect,sencha-touch-2.1,Extjs,Sencha Touch,Sencha Touch 2,Sencha Architect,Sencha Touch 2.1,我有一个日期选择器(默认值),我需要在其上将月份列转换为任何其他语言 我还没有能够访问这些字段,似乎也找不到一个合适的方法 有人知道我如何将“选择器”选项设置为我想要的选项(即翻译文本) 工作得很有魅力,很难找到合适的方法 { fn: function(element, eOpts) { var picker = this.query('pickerslot')[0]; var store = picker.getStore();
{
fn: function(element, eOpts)
{
var picker = this.query('pickerslot')[0];
var store = picker.getStore();
for (i in LANG.word.months)
{
store.getAt(i).data.text=LANG.word.months[i];
}
picker.refresh();
},
event: 'painted'
}