-
Notifications
You must be signed in to change notification settings - Fork 14
/
app.js
52 lines (47 loc) · 1.07 KB
/
app.js
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
Ext.Loader.setConfig({
enabled : true,
disableCaching : true, // For debug only
paths : {
'Chart' : 'Chart'
}
});
Ext.require('Chart.ux.HighStock');
Ext.require('Chart.ux.SampleConfigs');
Ext.application({
name : 'HighCharts',
appFolder : 'app',
controllers : ['Charts'],
launch : function() {
Ext.create('Ext.container.Viewport', {
layout : 'border',
border : '5 5 5 5',
id: 'viewport',
items : [{
region : 'north',
html : '<h1 class="x-panel-header">HighStock examples</h1>',
autoHeight : true,
border : false,
margins : '0 0 5 0'
}, {
region : 'west',
width : 250,
title : 'Charts',
id: 'leftTree',
xtype : 'chartsTree',
margins : '0 5 5 5'
}, {
region : 'center',
id : 'centerpane',
xtype : 'panel',
layout : 'fit',
margins : '0 5 5 0',
tbar : [{
text : 'Reload Data',
id : 'reload',
disabled : true,
action: 'reload'
}]
}]
});
}
});