Search code examples
extjsextjs3

ExtJS 3.4 - setLoading


I am using ExtJS 3 now, and I really miss setLoading function from ExtJS 4.

Looked throght the docs carefully, did not find it.

How can I set/remove loading state on any component in ExtJS 3.4?


Solution

  • You should create a new LoadMask Object for the component

    var loadMask = new Ext.LoadMask(cmp, {msg:'Wait message'});
    

    and then you can show or hide the mask

    loadMask.show(); 
    loadMAsk.hide();