]> git.proxmox.com Git - extjs.git/blame - extjs/build/examples/classic/videos/window.html
add extjs 6.0.1 sources
[extjs.git] / extjs / build / examples / classic / videos / window.html
CommitLineData
6527f429
DM
1<!DOCTYPE html>\r
2<html>\r
3<head>\r
4 <meta http-equiv="X-UA-Compatible" content="IE=edge">\r
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
6 <title>Windows</title>\r
7 <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css"/>\r
8\r
9 <!-- GC -->\r
10\r
11 <script type="text/javascript" src="../../ext-all.js"></script>\r
12</head>\r
13<body>\r
14 <script type="text/javascript" charset="utf-8">\r
15 Ext.require([\r
16 'Ext.button.Button',\r
17 'Ext.layout.container.Border',\r
18 'Ext.window.MessageBox'\r
19 ]);\r
20 Ext.onReady(function() {\r
21 Ext.create('Ext.button.Button', {\r
22 renderTo: Ext.getBody(),\r
23 text: 'My Button'\r
24 });\r
25 \r
26 Ext.create('Ext.window.Window', {\r
27 height: 400,\r
28 width: 500,\r
29 title: 'My Window',\r
30 \r
31 minWidth: 300,\r
32 minHeight: 200,\r
33 modal: true,\r
34 \r
35 layout: 'border',\r
36 items: [\r
37 {\r
38 xtype: 'panel',\r
39 region: 'west',\r
40 width: 150,\r
41 split: true,\r
42 html: 'This is a panel'\r
43 },\r
44 {\r
45 xtype: 'panel',\r
46 region: 'center',\r
47 html: 'In the center'\r
48 }\r
49 ],\r
50 \r
51 buttons: [\r
52 {\r
53 text: 'My Button',\r
54 handler: function() {\r
55 Ext.Msg.alert('You clicked', 'Do NOT click the button');\r
56 }\r
57 }\r
58 ]\r
59 }).show();\r
60 });\r
61 </script>\r
62</body>\r
63</html>\r