ExtJS 3.4 - setLoading

I am using ExtJS 3 now and I am really missing the setLoading function from ExtJS 4.

I looked carefully at the documents, did not find it.

How to set / remove boot status on any component in ExtJS 3.4?

+3
source share
2 answers

You need to 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();
+2
source

If you use storage, you can also provide storage as a property for the load mask configuration property. This way you do not need to actually hide or show in the storage handler.

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

from Ext LoadMask documentation:

, . , , , .

0

All Articles