forked from rodiusd/ext4mvc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
43 lines (34 loc) · 701 Bytes
/
app.js
File metadata and controls
43 lines (34 loc) · 701 Bytes
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 and configure loader
Ext.Loader.setConfig({
enabled:true
,paths:{
Ext:'ext/src'
,My:'app'
}
});
// require dependencies
Ext.require([
'My.view.Viewport'
,'Ext.data.proxy.LocalStorage'
,'Ext.selection.CellModel'
,'Ext.form.field.Text'
,'Ext.grid.plugin.CellEditing'
,'Ext.state.CookieProvider'
]);
Ext.application({
name:'My'
,appFolder:'app'
,autoCreateViewport:false
,controllers:['Users']
,launch:function() {
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
this.viewport = Ext.create('My.view.Viewport', {
width:400
,height:300
,stateId:'myWindow'
});
window[this.name].app = this;
this.viewport.show();
}
});
// eof