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()方法
啊......是的。我看到了層次結構。謝謝! – hariszhr