我要求将Ext.LoadMask
的默认背景颜色从白色覆盖为灰色。我怎样才能做到这一点?还添加了图像的屏幕截图和我用来加载蒙版的代码。
var feestore = this.getBillingFeePanelStoreStore();
feestore.on({
beforeload: this.beforeFeestoreLoad,
scope: this
});
beforeFeestoreLoad: function(store, operation, eOpts){
var myMask = new Ext.LoadMask(Ext.getBody(), {msg:"Please wait.... Your request is being processed"});
myMask.show();
感谢任何帮助。
答案 0 :(得分:1)
使用“maskCls”定义自己的样式,然后添加适当的css
var myMask = new Ext.LoadMask(Ext.getBody(), {msg:"Please wait.... Your request is being processed", maskCls:'customLoadMask'});
CSS:
.customLoadMask {
filter: alpha(opacity=70);
opacity: .7;
background: grey !important;
}
答案 1 :(得分:1)
以下为extjs 4.2工作: msgCls 而不是 maskCls
var loadingMask = new Ext.LoadMask(Ext.getBody(), {
msg:"Een moment geduld aub ...", msgCls:'msgClsCustomLoadMask'});
CSS:
.msgClsCustomLoadMask{
background-color: #FF0000;
border: solid 2px #A3BAD9;}
.msgClsCustomLoadMask .x-mask-msg-inner{
color: #000066;
font: normal 25px Times new Roman,helvetica,arial,verdana,sans-serif;}
http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.LoadMask-cfg-msgCls
希望这有帮助。