How do you change the header text of columns in an extjs gridpanel for localization?
I found this useful page for learning how to do localization with ExtJS.
How can I apply the 开发者_开发技巧same principle to the column headers of a GridPanel?
Maintain your own own language file:
Ext.ns('MyApp');
MyApp.Locale = {
Column1Text: 'Foo',
Column2Text: 'Bar'
};
console.log(MyApp.Locale.Column1Text);
From here, you can overwrite it using new locale files, same as Ext does.
精彩评论