2012-07-03 44 views
2

我已經在控制器級應用了加載掩碼。我添加了像「loading ...」一樣的自定義消息。對於這將指示的使用參考,頁面正在加載。我也設置了指標:是的。但我無法看到指標。請任何人幫助我。如何向用戶顯示指標。指示器在loadmask中不起作用sencha touch

我的代碼是在這裏:

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) { 
       } 
      });    
    } 

回答

13

我使用薩斯風格。在sass文件夾中,app.scss不包含關鍵字。 @include sencha-loading-spinner;現在我已經添加了這個和complied ..現在指標工作正常,可見。

+0

是的,一直那裏也是。我花了一個小時才弄明白。 –

+0

在這一個上浪費了2個小時 - 感謝上百萬的指出。 –

+0

我也有同樣的問題!在我的app.scss中,我沒有@include sencha-loading-spinner;以及。但是當我添加它時,它不起作用,它也確實改變了我的應用程序的外觀:s – Fruxelot

3

在最新的版本中混入煎茶加載微調已更名爲ST加載微調,所以現在你需要添加到您的app.scss

@include st-loading-spinner; 
相關問題