我们可以在 Ext.Component 上调用 getView() 方法,但 sdk 文档没有显示 getView() 方法

We can call getView() method on Ext.Component but the sdk doc doesnt show getView() method

 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() 方法。 我正在尝试了解该框架。如果我理解错了,请告诉我。谢谢!

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