1. #1
    Sencha User
    Join Date
    Aug 2011
    Location
    Bangalore,IN
    Posts
    114
    Vote Rating
    0
    Answers
    6
    gameboy87 is on a distinguished road

      0  

    Default Unanswered: How to Load mask to a window/store before loading ?

    Unanswered: How to Load mask to a window/store before loading ?


    I call upon different functions to load a store and from the the load event of the store's listener, a function is called to load the window and distribute the data to all components in it. So, it takes some 2 seconds for the window to load. Can I use some dummy LoadMask before loading the window so that the user knows something is going to Load ?

    Thanks.

  2. #2
    Sencha User
    Join Date
    May 2011
    Location
    Ukraine, Rivne
    Posts
    250
    Vote Rating
    42
    Answers
    44
    redraid has a spectacular aura about redraid has a spectacular aura about redraid has a spectacular aura about

      0  

    Default


    Try this:
    var el = window.getEl();

    el.mask('Mask text');
    ...
    el.unmask();

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Location
    Bangalore,IN
    Posts
    114
    Vote Rating
    0
    Answers
    6
    gameboy87 is on a distinguished road

      0  

    Default


    Printing,

    var window= Ext.create('Ext.window.Window',{
    ......
    .....
    });
    console.log(window.getEl());

    shows undefined.....
    Please help....

    Quote Originally Posted by redraid View Post
    Try this:
    var el = window.getEl();

    el.mask('Mask text');
    ...
    el.unmask();

  4. #4
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,099
    Vote Rating
    96
    Answers
    113
    Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light

      0  

    Default


    probably you have not displayed the window. thats why its undefined. use window.show() before using window.getEl()

  5. #5
    Sencha User
    Join Date
    Aug 2011
    Location
    Bangalore,IN
    Posts
    114
    Vote Rating
    0
    Answers
    6
    gameboy87 is on a distinguished road

      0  

    Default


    Thanks Farish & redraid . ...
    After rendering/showing the window the mask is working. Voila !
    But, I want to display before the window gets displayed on screen. May I know how to do that ?

    Thanks.

    Quote Originally Posted by Farish View Post
    probably you have not displayed the window. thats why its undefined. use window.show() before using window.getEl()

  6. #6
    Sencha User
    Join Date
    May 2011
    Location
    Ukraine, Rivne
    Posts
    250
    Vote Rating
    42
    Answers
    44
    redraid has a spectacular aura about redraid has a spectacular aura about redraid has a spectacular aura about

      0  

    Default


    You can mask document body:

    Ext.getBody().mask('test')
    ...
    Ext.getBody().unmask();


    //wbr

  7. #7
    Sencha User
    Join Date
    Aug 2011
    Location
    Bangalore,IN
    Posts
    114
    Vote Rating
    0
    Answers
    6
    gameboy87 is on a distinguished road

      0  

    Default


    I was trying the same & got that working. Thanks guys !