]> git.proxmox.com Git - extjs.git/blame - extjs/examples/classic/neptune-components/app/view/window/Windows.js
add extjs 6.0.1 sources
[extjs.git] / extjs / examples / classic / neptune-components / app / view / window / Windows.js
CommitLineData
6527f429
DM
1Ext.define('Neptune.view.window.Windows', {\r
2 extend: 'Ext.container.Container',\r
3 xtype: 'windows',\r
4 id: 'windows',\r
5\r
6 layout: {\r
7 type: 'table',\r
8 columns: 4,\r
9 tdAttrs: { style: 'padding: 7px; vertical-align: top;' }\r
10 },\r
11 items: [\r
12 { xtype: 'basicWindow', x: 15, y: 60, width: 300, height: 200 },\r
13 { xtype: 'windowWithButtons', x: 350, y: 60, width: 300, height: 200 },\r
14 { xtype: 'button', text: 'Show a Message Box', handler: function() {\r
15 Ext.Msg.show({\r
16 title:'Really?',\r
17 msg: 'Are you sure you want to do that?',\r
18 buttons: Ext.Msg.YESNOCANCEL,\r
19 icon: Ext.Msg.QUESTION\r
20 });\r
21 }}\r
22 ],\r
23\r
24 afterRender: function() {\r
25 this.floatingItems.getAt(0).show();\r
26 this.floatingItems.getAt(1).show();\r
27 this.callParent(arguments);\r
28 }\r
29});