4
votes

I've found some documentation for pinning a loading mask to any ExtJS element, but I need it to behavior other way. I want to explicitly write a show instruction somewhere and a hide one elsewhere. Didn't find anything like that by now...

Thanks in advance for any idea.

1

1 Answers

5
votes

try this :

function loadMask(el,flag,msg){
    var Mask = new Ext.LoadMask(Ext.get(el), {msg:msg});
    if(flag)
        Mask.show();
    else
        Mask.hide();
}

refer this : Load Mask