PDA

View Full Version : Check whether LoadMask is already applied to component



extjser12
10 Apr 2012, 4:54 AM
Hello together

Can someone support me to check whether a LoadMask is already applied to a specific component?


var loadMask = new Ext.LoadMask(window, {msg:"Please wait..."});

In this example I want to know whether a LoadMask is already applied to the "window" or not.

Thank you in advance for your support! ;)

Kind regards
shub

scottmartin
10 Apr 2012, 9:47 AM
If check loadMask after you show ( loadMask.show() ), it will provide you with the details:

loadMask.rendered: true
loadMask.container.id = 'id-of-container-masked'

If you place a breakpoint after loadMask.show() in Firebug, you will see a wealth of information.

Regards,
Scott

extjser12
12 Apr 2012, 2:38 AM
I've found the solution. You have to set the "LoadMask" on the component you want with the method "setLoading()".

Regards, extjser12