您的位置:首页 > Web前端 > JavaScript

extjs4.2 -- 关于window窗口的问题

2013-04-23 17:29 465 查看
在做项目中,发现如果点击按钮弹出一个窗口可以,但是我再点击该按钮想弹出该窗口,却发现显示不出来。。。。

不知道是什么问题......经过调查发现:

是window的一个属性的问题,英文属性解释如下:

closeAction :String

The action to take when the close header tool is clicked:

'destroy'
:

remove the window from the DOM anddestroy
it and all descendant Components. The window will not be available to be redisplayed via theshow
method.

'hide'
:

hide the window by setting visibility to hidden and applying negative offsets. The window will be available
to be redisplayed via the
show method.

Note: This behavior has changed! setting does affect theclose method which will
invoke the approriate closeAction.

翻译:

closeAction属性可以设置两个值,一个是'hide',一个是‘destroy’,

destroy: 从页面dom中移除窗口并销毁它和其所有的子控件。这个窗口将不可能通过窗口显示方法重新显示出来

hide: 通过设置可见性为隐藏来隐藏窗口,并且使其功能失效。这个窗口将可以通过窗口显示方法重新显示出来

所以我的问题就是将closeAction设置为‘hide’ 就可以了

分享window

/article/6679168.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: