Upgrade to ExtJS 4.0.2 - Released 06/09/2011
[extjs.git] / examples / layout / table.js
1 /*
2
3 This file is part of Ext JS 4
4
5 Copyright (c) 2011 Sencha Inc
6
7 Contact:  http://www.sencha.com/contact
8
9 GNU General Public License Usage
10 This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file.  Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
11
12 If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
13
14 */
15 Ext.onReady(function() {
16     var panel = Ext.create('Ext.Panel', {
17         id:'main-panel',
18         baseCls:'x-plain',
19         renderTo: Ext.getBody(),
20         layout: {
21             type: 'table',
22             columns: 3
23         },
24         // applied to child components
25         defaults: {frame:true, width:200, height: 200},
26         items:[{
27             title:'Item 1'
28         },{
29             title:'Item 2'
30         },{
31             title:'Item 3'
32         },{
33             title:'Item 4',
34             width:410,
35             colspan:2
36         },{
37             title:'Item 5'
38         },{
39             title:'Item 6'
40         },{
41             title:'Item 7',
42             width:410,
43             colspan:2
44         },{
45             title:'Item 8',
46             rowspan: 2,
47             height: 410
48         },{
49             title:'Item 9'
50         },{
51             title:'Item 10'
52         },{
53             title:'Item 11',
54             rowspan: 2,
55             height: 410
56         },{
57             title:'Item 12'
58         },{
59             title:'Item 13'
60         },{
61             title:'Item 14',
62             rowspan: 2,
63             height: 410
64         },{
65             title:'Item 15'
66         },{
67             title:'Item 16'
68         },{
69             title:'Item 17',
70             rowspan: 2,
71             height: 410
72         },{
73             title:'Item 18',
74             width:410,
75             colspan:2
76         },{
77             title:'Item 19'
78         },{
79             title:'Item 20'
80         }]
81     });
82 });
83