简体   繁体   English

指示器在loadmask sencha touch中不起作用

[英]indicator is not working in loadmask sencha touch

I have applied load-mask at controller level.i have added custom message like "loading...". 我在控制器级别应用了加载掩码。我添加了自定义消息,如“加载...”。 for the uses reference this will indicate, the page is loading. 对于使用参考,这将表明,页面正在加载。 also i have set indicator:true. 我也设置了指标:true。 but i am not able to see the indicator. 但我无法看到指标。 please any one help me. 请任何人帮助我。 how to show the indicator to user. 如何向用户显示指标。

My code is Here: 我的代码在这里:

OnInitCompanyPage: function () {
        Ext.Viewport.setMasked({ xtype: 'loadmask', message: 'Loading...', indicator:true});
            Ext.data.JsonP.request({
                url: SLS.BRND.WEB.common.Constants.wcfBaseUrl + 'PropertyService.svc/GetCompanyDetail',              
                method: 'POST',
                callbackkey: 'callback',
                params: {
                    format: 'json'
                },
                callback: function (response, value, request) {
                    var localdata = JSON.stringify(value);
                    localStorage.setItem('PromoURL', localdata);
                    Ext.Viewport.setMasked(false);
                },
                failure: function (response, request) {
                }
            });             
    }

i am using sass style. 我正在使用sass风格。 in sass folder app.scss does not contain the keyword. 在sass文件夹中,app.scss不包含关键字。 @include sencha-loading-spinner; @include sencha-loading-spinner; now i have added this one and complied.. now indicator is working fine and visible to see. 现在我已经添加了这个并且已经完成了..现在指标工作正常且可见。

在最新版本中,mixin sencha-loading-spinner已经重命名为st-loading-spinner,所以现在你需要添加到你的app.scss

@include st-loading-spinner;

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

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