Debian Codegraph @

dojox/app/tests/scrollableTestApp/config.json

raw symbols SCIP
1 {
2 "id": "scrollableTestApp",
3 "name": "Scrollable Test App",
4 "description": "This is a test app for scrollable lists.",
5 "splash": "splash",
6
7 // Dependencies, modules and controllers are loaded using the Dojo AMD loader.
8 // This parameter allows to configure the loader itself and specify for example where custom modules can be found.
9 "loaderConfig": {
10 "paths": {
11 "scrollableTestApp": "../dojox/app/tests/scrollableTestApp"
12 }
13 },
14
15 // Array of AMD modules identifiers. When defined at the top level dependencies of the dojox/app application.
16 // When defined at view level, dependencies for the view.
17 "dependencies": [
18 "dojox/mobile/_base",
19 "dojox/mobile/_compat",
20 "dojox/mobile/TabBar",
21 "dojox/mobile/TabBarButton",
22 "dojox/mobile/TextBox",
23 "dojox/mobile/Button",
24 "dojox/mobile/Heading",
25 "dojox/mobile/ListItem",
26 "dojox/mobile/RoundRectList",
27 "dojox/mobile/RoundRectCategory",
28 "dojox/app/widgets/Container",
29 "dojox/mobile/Container",
30 "dojo/data/ItemFileWriteStore",
31 "dojo/store/DataStore",
32 "dojox/app/utils/mvcModel",
33 "dojox/mvc/EditStoreRefListController",
34 "dojox/mvc/Repeat",
35 "dojox/mvc/WidgetList",
36 "dojox/mvc/Templated",
37 "dojox/mvc/_InlineTemplateMixin",
38 "dojox/mobile/ScrollableView",
39 "dojox/mvc/Group",
40 "dojox/mvc/Output",
41 "dojox/mvc/at"
42 ],
43 // Modules for the application. They are basically used as the second
44 // array of mixins in a dojo.declare(). Modify the top level behavior
45 // of the application, how it processes the config or any other life cycle
46 // by creating and including one or more of these
47 "modules": [
48 "scrollableTestApp/scrollableTestApp"
49 ],
50
51 // Array of AMD modules identifiers. Controllers for the application. All the controllers defined here will be
52 // loaded during application startup to respond to application events and controller the application logic.
53 "controllers": [
54 "dojox/app/controllers/Load",
55 "dojox/app/controllers/Transition",
56 "dojox/app/controllers/Layout"
57 ],
58
59 // Dojo stores which are used by dojox/app to setup data models. A store item is an object with a
60 // a type and a params property. The type property is the AMD module identifier for the store class to be
61 // instantiated. The content of the params property is passed to the store class constructor to build an
62 // instance.
63 "stores": {
64 "repeatStore":{
65 "type": "dojo/data/ItemFileWriteStore",
66 "params": {
67 "url": "./resources/data/repeat.json"
68 }
69 }
70 },
71
72 // Models and their instantiation parameters. A model item is an object with three properties: the
73 // model type, the modelLoader and the params. The modelLoader property defines whether an MVC or a
74 // simple model must be loaded. The type property defines which class must be used for that model using
75 // an AMD module identifier and finally the params property content is passed to the model class
76 // constructor to build an instance.
77 "models": {
78 "repeatmodels": {
79 "modelLoader": "dojox/app/utils/mvcModel",
80 "type": "dojox/mvc/EditStoreRefListController",
81 "params":{
82 "datastore": {"$ref":"#stores.repeatStore"}
83 }
84 }
85 },
86
87 // The has section will include the sections for which the has checks are true.
88 // For the sections with ! it will include the section if the has check is not true.
89 "has" : {
90 "phone" : {
91 //The name(s) of the view(s) to load when the application is initialized.
92 "defaultView": "configuration,ScrollableListSelection"
93 },
94 "!phone" : {
95 //The name(s) of the view(s) to load when the application is initialized.
96 "defaultView": "TestInfo",
97 "template": "scrollableTestApp/views/tablet/ViewScrollableLists.html",
98 "controller": "scrollableTestApp/views/tablet/ViewScrollableLists"
99 },
100 "ie9orLess" : {
101 "controllers": [
102 "dojox/app/controllers/HistoryHash"
103 ]
104 },
105 "!ie9orLess" : {
106 "controllers": [
107 "dojox/app/controllers/History"
108 ]
109 }
110 },
111
112 // defaultTransition: The default animation type for the view transition.
113 // the defaultTransition is only used if transition is not set in the config and the transition is not set or
114 // defaulted on the transitionEvent
115 // These are the possible defaultTransitions,
116 //"defaultTransition": "slide",
117 //"defaultTransition": "none",
118 //"defaultTransition": "fade",
119 "defaultTransition": "flip", // Note: flip does not work with a BorderLayout Controller
120
121 // transition: The animation type to use for all view transitions.
122 // if a transition is set on a view or parent it will override the transition set on the transitionEvent or the defaultTransition in the config.
123 //"transition": "slide",
124
125 // views: The children views of an application or of a view. Dependencies may be defined on views for
126 // optimization and organization purposes. Models might also be defined on views if they are view-specific
127 // Finally a view item as three additional properties: transition for specific view transitions, template for
128 // defining the view rendering and finally controller to provide an AMD module to be mixed into the view to
129 // control it. AMD modules identifiers starting with “.” will be resolved relative to the application root. All other
130 // modules identifiers will be resolved according to the Dojo AMD loader rules and in particular with respect
131 // to its configuration provided as part of the loaderConfig attribute. If you do not want a controller
132 // module at all you should not specify one, setting it to none will no longer work.
133
134 "views": {
135 "configuration": {
136 "defaultView": "ScrollableListSelection",
137 "transition": "slide",
138
139 "views": {
140 "ScrollableListSelection": {
141 "controller": "scrollableTestApp/views/configuration/ScrollableListSelection.js",
142 "template": "scrollableTestApp/views/configuration/ScrollableListSelection.html"
143 }
144 }
145 },
146
147
148 "TestInfo": {
149 "transition": "none",
150 "controller": "scrollableTestApp/views/TestInfo.js",
151 "template": "scrollableTestApp/views/TestInfo.html"
152 },
153 "Scrollable1": {
154 "transition": "slide",
155 "controller": "scrollableTestApp/views/Scrollable1.js",
156 "template": "scrollableTestApp/views/Scrollable1.html"
157 },
158 "Scrollable1P": {
159 "transition": "flip",
160 "controller": "scrollableTestApp/views/Scrollable1P.js",
161 "template": "scrollableTestApp/views/Scrollable1P.html"
162 },
163 "Scrollable2": {
164 "transition": "fade",
165 "controller": "scrollableTestApp/views/Scrollable2.js",
166 "template": "scrollableTestApp/views/Scrollable2.html"
167 },
168 "Scrollable3": {
169 "controller": "scrollableTestApp/views/Scrollable3.js",
170 "template": "scrollableTestApp/views/Scrollable3.html"
171 },
172 "Scrollable4": {
173 "controller": "scrollableTestApp/views/Scrollable4.js",
174 "template": "scrollableTestApp/views/Scrollable4.html"
175 },
176 "Scrollable5": {
177 "controller": "scrollableTestApp/views/Scrollable5.js",
178 "template": "scrollableTestApp/views/Scrollable5.html"
179 },
180 "ListItemDomButtons": {
181 "controller": "scrollableTestApp/views/ListItem-domButtons",
182 "template": "scrollableTestApp/views/ListItem-domButtons.html"
183 },
184 "ListItemDomButtons2": {
185 "template": "scrollableTestApp/views/ListItem-domButtons2.html"
186 },
187
188 "repeatDetails": {
189 "controller": "scrollableTestApp/views/repeatDetails.js",
190 "template": "scrollableTestApp/views/repeatDetails.html",
191 "transition": "slide"
192 }
193 }
194 }