Extjs将面板的按钮添加到父窗口的bbar?

Ref*_*lux 1 javascript extjs

我在面板中有一个按钮,可以在窗口内渲染.我希望能够将该按钮添加到窗口的底栏.
当前我正在尝试向面板添加onRender函数以使用父窗口, this.findParentByType('Ext.Window')
但它返回null.

我甚至朝着正确的方向前进?

编辑:我正在使用extjs 3.2.2

Mol*_*Man 5

findParentByType将xtype作为参数.所以在你的情况下你应该使用

this.findParentByType('window')
Run Code Online (Sandbox Code Playgroud)

要么

this.up('window')
Run Code Online (Sandbox Code Playgroud)