1. #1
    Sencha User
    Join Date
    Jan 2010
    Posts
    24
    Vote Rating
    0
    vasion is on a distinguished road

      0  

    Default Unanswered: Changing default msg on LoadMask

    Unanswered: Changing default msg on LoadMask


    I am trying to change the default msg of the loadMask. I tried

    Ext.apply(Ext.LoadMask.prototype,{msg:"Wait a minute..."});

    but it is not working...

  2. #2
    Sencha User
    Join Date
    Sep 2009
    Posts
    85
    Answers
    8
    Vote Rating
    -1
    raz0r1 is an unknown quantity at this point

      0  

    Default


    It belongs to where you want to use it:

    when you use it for a grid you can set
    Code:
    loadMask: 'text to display'
    in the grid config.

    if you want to directly create it, then you can use
    Code:
    new Ext.LoadMask({Ext.Element}, {msg: 'text to display'});
    Ext.LoadMask is the only class i know where you have to use new Ext.LoadMask instead of Ext.create('Ext.LoadMask); as you see here: http://docs.sencha.com/ext-js/4-0/#!/api/Ext.LoadMask-method-constructor

    h
    ope i could help

  3. #3
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,574
    Answers
    540
    Vote Rating
    311
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    @vasion, I just tried your code and it worked fine. Using Ext.apply() seems like a bit of a strange way to set a single property value though, why not just:

    Code:
    Ext.LoadMask.prototype.msg = 'Wait a minute...';
    I agree with raz0r1 that this probably isn't a good idea though I can sympathize with why you might want to do it. A line almost identical to this appears in each of the locale files to translate the default message into other languages.

    @raz0r1, you can use Ext.create() with a loadmask:

    Code:
    Ext.create('Ext.LoadMask', el, {msg: 'text to display'});

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi