2017-01-25 28 views
1
GridComponent = { 

      xtype: 'rallygrid', 
      itemId: 'mygrid', 
      store: myStore, 
      //collapsible: true, 
      columnCfgs: [{ 
        text: textExpandCollapse, 
        //icon: '/slm/images/icon_story.gif', // Use a URL in the icon config 
        width: 50, 
        listeners: { 
         click: { 
         ... 
         ... 

groot=this.add(GridComponent); 
groot.getView().refresh(); 

爲什麼我們能夠在groot變量上調用getView()?根據我的理解,'groot'變量包含Ext.Component。而Ext.Component在App SDK 2.0 Docs中沒有getView()方法。 我想了解這個框架。請讓我知道我是否理解錯了。謝謝!我們可以在Ext.Component上調用getView()方法,但是sdk doc不顯示getView()方法

回答

0

赫魯特變量包含的xtype「rallygrid」的一個組成部分,我的猜測是電網。所以是的,網格是Ext.Component的後代,但有一些它自己的方法,特別是「getView」方法。

+0

啊......是的。我看到了層次結構。謝謝! – hariszhr

相關問題