开发者

How can close the extjs desktop.window and then open it

I want to close the window and then op开发者_如何学Cen it. I just do window.close and then I want opent it again but it can't and has a error like this c.getPositionEl().dom is undefined How can I do it.Thanks.


Use hide/show, not close. Close will destroy the dom object, hence the reason for the error.


To elaborate on Keylan's answer. You need to use window.hide instead of window.close if you want to re-use it. It is also smart to add closeAction: 'hide' to your window config.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜