extjs4.2 -- 关于window窗口的问题
2013-04-23 17:29
465 查看
在做项目中,发现如果点击按钮弹出一个窗口可以,但是我再点击该按钮想弹出该窗口,却发现显示不出来。。。。
不知道是什么问题......经过调查发现:
是window的一个属性的问题,英文属性解释如下:
closeAction :String
The action to take when the close header tool is clicked:
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 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
不知道是什么问题......经过调查发现:
是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
相关文章推荐
- 关于window.showModalDialog 父子窗口传值,及刷新父窗等问题
- 关于window.open弹出窗口有无标题栏的问题
- 关于eclipse安装的Extjs4.2没代码提示的问题
- [小细节]关于ExtJS中树节点事件弹出窗口置底问题
- MFC:关于MFC窗口对象(CWnd对象)与Window对象(HWND所指对象)的销毁问题
- 关于javascript 中用window.open()打开多个窗口的问题
- 关于java中window以及子组件的窗口居中问题
- 关于mac下beginSheet:modalForWindow:modalDelegate:卷帘窗口挂载不上的问题及解决方法
- 有关于在Extjs4环境中,window窗口下的messageBox弹窗的bug以及解决方案
- 关于window.open弹出窗口被阻止的问题
- extjs 模态窗口问题(window modal z index)
- 关于窗口重绘的初级问题
- 关于window.onload问题
- ExtJs4 笔记(9) Ext.Panel 面板控件、 Ext.window.Window 窗口控件、 Ext.container.Viewport 布局控件
- easyui window tool 弹出窗口 工具栏 重用问题
- 关于对父类窗口的操作:window.open相关
- window.showModalDialog弹出窗口翻页时弹出新窗口的问题
- 关于window中在android虚拟机AVD上安装apk应用问题。
- 关于模式窗口中treeView问题
- 【转】补充说明:关于Beaglebone black上debian无图形界面的问题及QT的窗口示例