开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜