javascript - Grid loadMask malfunction.Set loadMask target config -


the grid loadmask has problems.

loadmask:true not work.

if choose follows:

viewconfig: {   loadmask: {msg: 'loading records ...'} } 

it works mask covers grid body, excluding toolbares.

i tried maskelement: 'el' did not work.

i not intend use setloading ().

one solution might target grid:

viewconfig: {      loadmask: {msg: 'loading records ...', target: this}   } 

but target: this not work.

any idea how , set grid reference in config target?

you have override createmask function of abstractview.

ext.define('test',{     override:'ext.view.abstractview',     privates:{         createmask:function(mask) {             if(this.ownerct) {                 if(!ext.isobject(mask)) mask = {target:this.ownerct};                 else if(!mask.target) mask.target = this.ownerct;             }             this.callparent(arguments);         }     } }); 

fiddle


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -