Reputation: 17020
Is there a way to change Ext.LoadMask.msg
on ExtJS 4.1 MVC Application globally?
Upvotes: 0
Views: 4597
Reputation: 11
Ext.define("Ext.locale.de.view.AbstractView", {
override: "Ext.view.AbstractView",
loadingText: "Uebertrage Daten..." });
This works for me.
Upvotes: 1
Reputation: 1
Add something like this at the onReady function:
if (Ext.LoadMask) {
Ext.apply(Ext.LoadMask.prototype, {
msg: 'Загрузка...'
});
}
Or like this at the your locale.** file:
Ext.define("Ext.locale.**.LoadMask", {
override: "Ext.LoadMask",
msg: "Загрузка..."
});
Upvotes: 0
Reputation: 3628
var myMask = new Ext.LoadMask(myPanel, {msg:"Please wait..."});
myMask.show();
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.LoadMask
Upvotes: -1
Reputation: 23983
It should work with
// changing the msg text below will affect the LoadMask
Ext.define("Ext.locale.##.view.AbstractView", {
override: "Ext.view.AbstractView",
msg: "Loading data..."
});
for the most cases. Call this right after/within the onReady() function. Set ## to your locale language
Upvotes: 1