This repository was archived by the owner on May 7, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo7.js
More file actions
85 lines (84 loc) · 2.32 KB
/
Copy pathdemo7.js
File metadata and controls
85 lines (84 loc) · 2.32 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
Ext.onReady(function() {
Ext.create('Ext.grid.Panel', {
renderTo: document.body,
height: 300,
width: 500,
store: Ext.create('Ext.data.Store', {
fields: ['firstname', 'lastname', 'company', 'twitter', 'session'],
data: Demo.sampleData
}),
columns: [{
text: 'First Name',
dataIndex: 'firstname'
}, {
text: 'Last Name',
dataIndex: 'lastname'
}, {
xtype: 'multisorttemplatecolumn',
flex: 1,
dataIndex: 'company',
text: [{
name: 'Company',
dataIndex: 'company'
}, {
name: 'Twitter',
dataIndex: 'twitter'
}, {
name: 'Session',
dataIndex: 'session'
}],
tpl: [
'{company}<br/>',
'<tpl if="twitter">',
'<a href="http://twitter.com/{twitter}">http://twitter.com/{twitter}</a><br/>',
'</tpl>',
'{session}'
]
}]
});
});
Demo = {
sampleData: [{
firstname: 'Aaron',
lastname: 'Conran',
company: 'Sencha',
twitter: 'aconran',
session: 'Building Touch Apps with Designer'
}, {
firstname: 'Jamie',
lastname: 'Avins',
company: 'Sencha',
twitter: 'jamieavins',
session: 'Migrating from Touch 1.x to 2.0'
}, {
firstname: 'Rich',
lastname: 'Waters',
company: 'Extnd LLC',
twitter: 'rwaters',
session: 'Ext JS 4: Advanced Expert Techniques'
}, {
firstname: 'Ariya',
lastname: 'Hidayat',
company: 'Sencha',
twitter: 'ariyahidayat',
session: 'Hacking WebKit & Its JavaScript Engines'
}, {
firstname: 'Ashvin',
lastname: 'Radiya',
company: 'Avantsoft Inc.',
twitter: '',
session: 'Community Code: Pega'
}, {
firstname: 'Cyrus',
lastname: 'Mistry',
company: 'Google',
twitter: 'mistrycy',
session: 'Keynote'
}, {
firstname: 'Jay',
lastname: 'Garcia',
company: 'Modus Create',
twitter: '_jdg',
session: 'Community Code: The SenchaCon App'
}]
};