-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.js
41 lines (31 loc) · 905 Bytes
/
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
// Az Application tartalmazza a globális beállításait az appnak (kezdve
// a nevével) és kezeli a model, kontroller, nézet referenciákat.
Ext.require([
'Ext.container.Viewport'
, 'Ext.form.Panel'
]);
Ext.application({
name: 'AM'
, appFolder: 'app'
, controllers: [
'Users'
]
, launch: function () {
Ext.create('Ext.container.Viewport', {
layout: 'fit'
, autoCreateViewport: true // Automatically loads and instantiates
// AppName.view.Viewport before firing the
// launch function.
, items: [
{
xtype: 'userlist'
/*
xtype: 'panel'
, title: 'Users'
, html: 'List of users will go here'
/**/
}
]
}); // Ext.create
} // function
}); // application