Ext.window.WindowView xtype: window
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title> Ext.window.Window</title>
- <link rel="stylesheet" type="text/css" href="../extjs-4.1.0/resources/css/ext-all.css"/>
- <script type="text/javascript" src="../extjs-4.1.0/bootstrap.js"></script>
- <script type="text/javascript" src="testWindow.js"></script>
- </head>
- <body>
- </body>
- </html>
- (function(){
- Ext.onReady(function(){
- Ext.create('Ext.window.Window', {
- title: 'Hello',
- height: 200,
- width: 400,
- layout: 'fit',
- items: { // Let's put an empty grid in just to illustrate fit layout
- xtype: 'grid',
- border: false,
- columns: [{header: 'World'}], // One header just for show. There's no data,
- store: Ext.create('Ext.data.ArrayStore', {}) // A dummy empty data store
- }
- }).show();
- });
- })();
True to display the 'close' tool button and allow the user to close the window, false to hide the button and disallow closing the window.(true是显示'close'工具按钮,允许用户去关闭窗口,false是隐藏按钮不允许关闭窗口)
By default, when close is requested by either clicking the close button in the header or pressing ESC when the Window has focus, the close method will be called.(默认,点击工具条关闭按钮或者是当窗口有焦点的时候按ESC关闭请求被发出) This will destroy the Window and its content meaning that it may not be reused.(它将会销毁窗口和内容,这样窗口就不能重用了)
To make closing a Window hide the Window so that it may be reused, set closeAction to 'hide'.(为了隐藏窗口让它可以重用,设置closeAction属性为'hide')
Defaults to: true
Overrides: Ext.panel.Panel.closable