]>
Commit | Line | Data |
---|---|---|
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>Layouts</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.onReady(function() {\r | |
16 | Ext.create('Ext.panel.Panel', {\r | |
17 | renderTo: Ext.getBody(),\r | |
18 | height: 300,\r | |
19 | width: 500,\r | |
20 | title: 'Top Panel',\r | |
21 | \r | |
22 | layout: {\r | |
23 | type: 'accordion'\r | |
24 | },\r | |
25 | \r | |
26 | items: [\r | |
27 | {\r | |
28 | xtype: 'panel',\r | |
29 | title: 'My Panel',\r | |
30 | html : 'test'\r | |
31 | },\r | |
32 | {\r | |
33 | xtype: 'panel',\r | |
34 | title: 'North Panel',\r | |
35 | html : 'test'\r | |
36 | },\r | |
37 | {\r | |
38 | xtype: 'panel',\r | |
39 | title: 'Second Panel',\r | |
40 | items: [\r | |
41 | {\r | |
42 | xtype: 'button',\r | |
43 | text: 'Button 1'\r | |
44 | },\r | |
45 | {\r | |
46 | xtype: 'button',\r | |
47 | text : 'Button 2'\r | |
48 | }\r | |
49 | ]\r | |
50 | }\r | |
51 | ]\r | |
52 | });\r | |
53 | });\r | |
54 | </script>\r | |
55 | </body>\r | |
56 | </html>\r |