2016-03-01 63 views
0

我需要在加載窗口對話框添加到我的圖表中,同時獲取其數據,類似於網格中的bufferRenderer,它應該是一個簡單的加載窗口與網格中的加載對話框大小相同。我只是在尋找一些簡單的東西。如何將加載窗口添加到sencha加載中的圖表中

我認爲你應該使用maskElement,但我不知道肯定,我只需要圖表元素被隱藏或變灰。

繼承人我的代碼

{ 
       xtype: 'panel', 
       title: 'Charts', 
       items: [ 
        { 
         xtype: 'component' 
        }, 
        { 
         xtype: 'polar', 
         height: 520, 
         id: '', 
         width: '', 
         title: 'Pie Chart', 
         colors: [ 
          '#115fa6', 
          '#94ae0a', 
          '#a61120', 
          '#ff8809', 
          '#ffd13e', 
          '#a61187', 
          '#24ad9a', 
          '#7c7474', 
          '#a66111' 
         ], 
         store: 'GenderStore', 
         series: [ 
          { 
           type: 'pie', 
           label: { 
            field: 'types', 
            display: 'rotate', 
            contrast: true, 
            font: '12px Arial', 
            color: '#fff' 
           }, 
           xField: 'counter', 
           yField: 'types' 
          } 
         ], 
         interactions: [ 
          { 
           type: 'rotate' 
          } 
         ] 
        } 
       ] 
      } 

回答

0

爲了掩蓋裝載組件我通常使用面膜。

掩蔽的成分:

.mask([msg], [msgCls]) 


Masks this component with a semi-opaque layer and makes the contents unavailable to clicks. 


Parameters 
•msg : String (optional) 

A message to show in the center of the mask layer. 

•msgCls : String (optional) 

A CSS class name to use on the message element in the center of the layer. 

但是,如果手動掩模也有它被加載時它揭露的組件,掩模上之前呈現和揭露其上存儲負載的圖表。當所有數據已被接收時

相關問題