我在面板中有一个按钮,可以在窗口内渲染.我希望能够将该按钮添加到窗口的底栏.
当前我正在尝试向面板添加onRender函数以使用父窗口,
this.findParentByType('Ext.Window')
但它返回null.
我甚至朝着正确的方向前进?
编辑:我正在使用extjs 3.2.2
findParentByType
将xtype作为参数.所以在你的情况下你应该使用
this.findParentByType('window')
Run Code Online (Sandbox Code Playgroud)
要么
this.up('window')
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
3120 次 |
最近记录: |