]> git.proxmox.com Git - extjs.git/blame - extjs/examples/modern/touchtomatoes/app.js
add extjs 6.0.1 sources
[extjs.git] / extjs / examples / modern / touchtomatoes / app.js
CommitLineData
6527f429
DM
1//<debug>\r
2Ext.Loader.setPath({\r
3 'Ext': '../../src'\r
4});\r
5//</debug>\r
6\r
7Ext.application({\r
8 name: 'TouchTomatoes',\r
9\r
10 requires: ['Ext.Menu', 'TouchTomatoes.components.MenuButton', 'TouchTomatoes.view.WelcomeOverlay'],\r
11 controllers: ['TouchTomatoes.controller.Main'],\r
12\r
13 mainView: 'TouchTomatoes.view.Main',\r
14\r
15 launch: function() {\r
16 if (localStorage.getItem('isFirstTime') !== "false") {\r
17 localStorage.setItem('isFirstTime', false);\r
18\r
19 var overlay = Ext.create('TouchTomatoes.view.WelcomeOverlay');\r
20 Ext.Viewport.add(overlay);\r
21 overlay.show();\r
22 }\r
23\r
24 var menu = Ext.create("Ext.Menu", {\r
25 defaults: {\r
26 xtype: "menubutton"\r
27 },\r
28 width: '80%',\r
29 scrollable: 'vertical',\r
30 items: [\r
31 {\r
32 text: 'Opening',\r
33 iconCls: 'time',\r
34 menu:"opening"\r
35 },\r
36 {\r
37 text: 'Theatres',\r
38 iconCls: 'locate',\r
39 menu: "theatres"\r
40 },\r
41 {\r
42 text: 'Upcoming',\r
43 iconCls: 'team',\r
44 menu:"upcoming"\r
45 },\r
46 {\r
47 text: 'Top',\r
48 iconCls: 'bank',\r
49 menu:'top'\r
50 },\r
51 {\r
52 text: 'Search',\r
53 iconCls: 'search',\r
54 menu:"search"\r
55 }\r
56 ]\r
57 });\r
58\r
59 Ext.Viewport.setMenu(menu, {\r
60 side: 'left',\r
61 reveal: true\r
62 });\r
63 }\r
64});\r
65\r