1. #1
    Sencha User
    Join Date
    Jul 2010
    Location
    Paris, France
    Posts
    257
    Vote Rating
    0
    gabrielstuff is on a distinguished road

      0  

    Wink Override default loading mask msg

    Override default loading mask msg


    As I already properly use :

    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'
        });
    }
    I'd like to make work :

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

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

    Thank you !

  2. #2
    Sencha - Services Team arthurakay's Avatar
    Join Date
    Sep 2008
    Location
    Antioch, IL
    Posts
    1,352
    Vote Rating
    32
    arthurakay is a jewel in the rough arthurakay is a jewel in the rough arthurakay is a jewel in the rough

      0  

    Default


    PHP Code:
    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...
    Arthur Kay
    Developer Relations Manager, Sencha Inc.

    Twitter | Sencha Chicago User Group

  3. #3
    Sencha User
    Join Date
    Jul 2010
    Location
    Paris, France
    Posts
    257
    Vote Rating
    0
    gabrielstuff is on a distinguished road

      0  

    Default


    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

    Code:
    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 : /

Thread Participants: 1

Tags for this Thread