View Full Version : "Ext.getBody().mask" . What is it?

12 Jul 2010, 9:33 PM
Hello, it`s very hot weather.. (In Korea)


I am coding list panel with 'Sencha'.

And I also other example code.

There are "Ext.getBody().mask(false, '<div class="loading">Loading&hellip;</div>');"

and "Ext.getBody().unmask();".

If I clicked list in screen when I deleted these sentences,

I can not see click effect.

But if I include these sentences, I can see that!!

What`s this?? :-)

12 Jul 2010, 9:54 PM
That doesn't really make sense that it would happen. The mask just creates some overlaying elements to block user interaction.

12 Jul 2010, 11:42 PM
this is just a visual effect to mask the page while it is loading, if the loading is immediate, you will not see it, but if it's long you will see "loading" on your screen while it loads

13 Jul 2010, 12:34 AM
Ah!!! I understand. Thanks Aldri ^.^