开发者

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

开发者 https://www.devze.com 2023-01-30 20:30 出处:网络
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

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

精彩评论

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