-
30 Aug 2011 12:03 PM #1
Override default loading mask msg
Override default loading mask msg
As I already properly use :
I'd like to make work :Code:Ext.apply(Ext.MessageBox.YES, {text: 'Oui'}); Ext.apply(Ext.MessageBox.NO, {text: 'No'}); if(Ext.Picker){ Ext.override(Ext.Picker, { 'doneText': 'OK', 'cancelText':'Annuler' }); }
Code:if(Ext.LoadMask) { Ext.override(Ext.LoadMask, { 'msg' : 'Chargement...' }); }
Unfortunately if permanently fail... Any hint would be appreciate.
Thank you !
-
30 Aug 2011 12:22 PM #2
That works for me when I paste it into my console...PHP Code:if(Ext.LoadMask) {
Ext.override(Ext.LoadMask, {
'msg' : 'Chargement...'
});
}
var mask = new Ext.LoadMask(Ext.getBody());
mask.show()
-
30 Aug 2011 12:31 PM #3
Well, this works for sure in the console

not in my configuration...
let me look somewhere else.
=====
I've look everywhere... and I do not have anything else than
=======Code:var mask = new Ext.LoadMask(Ext.getBody());
Found it
Wouldn't it be nice to have all the string of the framework in a same place ? This would make i18n easier : /Code:if(Ext.DataView){ Ext.override(Ext.DataView, { 'loadingText' : 'Chargement...' }); }


Reply With Quote