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
    84
    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 User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,338
    Answers
    498
    Vote Rating
    248
    skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of

      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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar