简体   繁体   English

如何从 Ext.grid.Panel 中删除加载动画

[英]How can i remove the loading-animation from a Ext.grid.Panel

Like the title says, how can i remove the spinwheel from a Panel?就像标题说的那样,我怎样才能从面板上取下旋转轮?

I tried the property "loadMask" or "loadingMask" which seems to work for older versions and also the setLoading() method...我尝试了似乎适用于旧版本的属性“loadMask”或“loadingMask”以及 setLoading() 方法......

Edit: 'maskOnDisable' also doesn't work by the way.编辑:顺便说一句,“maskOnDisable”也不起作用。

You can use the setLoading method to hide the loading mask.您可以使用setLoading方法隐藏加载掩码。 For example:例如:

gridPanel.setLoading(false,false);

You can read the details of this method at Ext.grid.Panel documentation .您可以在Ext.grid.Panel 文档中阅读此方法的详细信息。 In ExtJS 4, the loading mask is created and displayed by the Ext.ComponentLoader .在 ExtJS 4 中,加载掩码由Ext.ComponentLoader创建和显示。

On Extjs4 you can use在 Extjs4 上,您可以使用

viewConfig: {loadMask:false} viewConfig: {loadMask:false}

I hope this works for you, but if you are using pagination I recommend that you don't hide the mask.我希望这对你有用,但如果你使用分页,我建议你不要隐藏面具。

Sam.山姆。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM