-
Notifications
You must be signed in to change notification settings - Fork 14
/
app.js
executable file
·43 lines (38 loc) · 1.13 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
/**
* Enable the Ext.Loader and set the path for the Ext.* namespace to where our touch2 SDK
* is placed.
*/
Ext.Loader.setConfig({enabled: true});
Ext.Loader.setPath('Ext', 'lib/touch2/src');
/**
* Define our application.
*/
Ext.application({
/**
* Give it a name. This is what our namespace is. So any views, stores or models we create
* should be under the Example.store.*, Example.view.*, Example.model.* namespace.
*/
name: 'Example',
/**
* Include our controllers. This is a simple example so there is only one controller.
*/
controllers: ['Application'],
/**
* Include the application views. We only have one, normally you should only have one, with the
* rest of your views inside your controller.
*/
views: ['Main', 'KittensList'],
/**
* Include the stores that our application use.
*/
stores: ['Kittens'],
/**
* When the application launches, we want to add the main view (defined above) into the Ext.Viewport
* instance.
*/
launch: function() {
Ext.Viewport.add({
xclass: 'Example.view.Main'
});
}
});