Sencha 触摸应用程序加载蒙版
我有一个 sencha 触摸应用程序,但想在页面加载时对整个应用程序应用加载蒙版。 (即在加载 Javascript 文件等时)
在 ExtJS 中,我曾经有一个带有加载图像的全尺寸 div,然后作为“onReady”的第一个操作,我用来淡出该 div,然后将其删除。不幸的是,fadeOut()似乎在SenchaTouch中不可用
我的应用程序定义如下:
Ext.application({
name: 'MyApp',
launch: function() {
Ext.create('Ext.Panel', {
fullscreen: true,
html: 'Hello World'
});
}
});
任何指针都会被appretiated
I have a sencha touch application, but want to apply a loading mask to the entire app while the page is loading. (i.e. while the Javascript files etc are loading)
In ExtJS, I used to have a full sized div with a loading image, then as the first action of the "onReady" I used to fade that div out then remove it. Unfortunately, fadeOut() doesnt seem to be available in SenchaTouch
My app definition is as follows:
Ext.application({
name: 'MyApp',
launch: function() {
Ext.create('Ext.Panel', {
fullscreen: true,
html: 'Hello World'
});
}
});
Any pointers would be appretiated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用 Ext.LoadMask 类。有一个例子:
当您完成加载一些 Ajax 请求或完成任务并删除掩码时,您可以:
You can make use of the Ext.LoadMask class. There is an example:
When you finish loading some Ajax requests or doing your task and to remove the mask, you can:
嘿,您也可以在执行 ajax 请求和加载数据时尝试下面的代码
Hey you can also try this below code while doing ajax request and loading data
我的做法如下:
Here is how I go about it: