开发者

How do you change the header text of columns in an extjs gridpanel for localization?

开发者 https://www.devze.com 2023-01-03 23:15 出处:网络
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:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消