PDA

View Full Version : Making LoadMask background white



dogomatic
6 Mar 2012, 6:15 AM
Is there a way to style the LoadMask background (as opposed to the msg)?

I want to make it white and opaque in certain cases (but not others, so css on .x-mask won't do).

I can't seem to find a way to set a class on the x-mask element.

mitchellsimoens
6 Mar 2012, 10:46 AM
You can use the cls property when you set the loadMask config on a grid's view. Then you can use CSS to target that mask.

dogomatic
6 Mar 2012, 3:31 PM
Hey Mitchell,

I tried that, but the class gets added to the x-mask-msg el, which is the box with the text and animated gif, not the x-mask, the gray transparent element that covers what I'm masking.

I'm doing this on an edit form while the model loads using the LoadMask class. Maybe it's different with grids. I'll investigate.

Edit: I checked, and the class goes to the same place if you set it on a grid's viewConfig. There may not be a way to do this.