PDA

View Full Version : Override default loading mask msg



gabrielstuff
30 Aug 2011, 12:03 PM
As I already properly use :


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'
});
}


I'd like to make work :


if(Ext.LoadMask) {
Ext.override(Ext.LoadMask, {
'msg' : 'Chargement...'
});
}



Unfortunately if permanently fail... Any hint would be appreciate.

Thank you !

arthurakay
30 Aug 2011, 12:22 PM
if(Ext.LoadMask) {
Ext.override(Ext.LoadMask, {
'msg' : 'Chargement...'
});
}
var mask = new Ext.LoadMask(Ext.getBody());
mask.show()


That works for me when I paste it into my console...

gabrielstuff
30 Aug 2011, 12:31 PM
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


var mask = new Ext.LoadMask(Ext.getBody());


=======

Found it :)


if(Ext.DataView){
Ext.override(Ext.DataView, {
'loadingText' : 'Chargement...'
});
}


Wouldn't it be nice to have all the string of the framework in a same place ? This would make i18n easier : /