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

在做项目中,发现如果点击按钮弹出一个窗口可以,但是我再点击该按钮想弹出该窗口,却发现显示不出来。。。。

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

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

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

http://www.cnblogs.com/wangjunwei/archive/2013/02/12/2910286.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值