我们可以在Ext.Component上调用getView()方法,但是sdk doc不会显示getView()方法

时间:2017-01-25 06:16:45

标签: extjs rally

 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()? '格鲁特'变量包含Ext.Component根据我的理解。并且Ext.Component在App SDK 2.0 Docs中没有getView()方法。 我想了解这个框架。请知道我是否理解错了。谢谢!

1 个答案:

答案 0 :(得分:0)

您的 groot 变量包含xtype' rallygrid'的组件,我猜是 grid 。所以是的,网格是Ext.Component的后代,但它有自己的一些方法,特别是" getView"方法