table.js
1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Ext.onReady(function() {
var panel = Ext.create('Ext.Panel', {
id:'main-panel',
baseCls:'x-plain',
renderTo: Ext.getBody(),
layout: {
type: 'table',
columns: 3
},
// applied to child components
defaults: {frame:true, width:200, height: 200},
items:[{
title:'Item 1'
},{
title:'Item 2'
},{
title:'Item 3'
},{
title:'Item 4',
width:410,
colspan:2
},{
title:'Item 5'
},{
title:'Item 6'
},{
title:'Item 7',
width:410,
colspan:2
},{
title:'Item 8',
rowspan: 2,
height: 410
},{
title:'Item 9'
},{
title:'Item 10'
},{
title:'Item 11',
rowspan: 2,
height: 410
},{
title:'Item 12'
},{
title:'Item 13'
},{
title:'Item 14',
rowspan: 2,
height: 410
},{
title:'Item 15'
},{
title:'Item 16'
},{
title:'Item 17',
rowspan: 2,
height: 410
},{
title:'Item 18',
width:410,
colspan:2
},{
title:'Item 19'
},{
title:'Item 20'
}]
});
});