UNPKG

dojox

Version:

Dojo eXtensions, a rollup of many useful sub-projects and varying states of maturity – from very stable and robust, to alpha and experimental. See individual projects contain README files for details.

159 lines (146 loc) 4.37 kB
{ "id": "domOrderByConstraint", "name": "Model App", "description": "A domOrderByConstraint", "splash": "splash", "dependencies": [ "dojox/app/utils/simpleModel", "dojox/app/widgets/Container", "dojo/store/Observable", "dojox/mobile/_base", "dojox/mobile/compat", "dojox/mobile/TabBar", "dojox/mobile/RoundRect", "dojox/mobile/TabBarButton", "dojox/mobile/Button", "dojox/mobile/TextBox", "dojox/mobile/RoundRect", "dojox/mobile/Heading", "dojox/mobile/EdgeToEdgeStoreList", "dojox/mobile/EdgeToEdgeList", "dojox/mobile/DatePicker", "dojox/mobile/Opener", "dojo/store/Memory", "dojox/mobile/deviceTheme" ], // Modules for the application. The are basically used as the second // array of mixins in a dojo.declare(). Modify the top level behavior // of the application, how it processes the config or any other life cycle // by creating and including one or more of these "modules": [ //"dojox/app/module/env", //"dojox/app/module/lifecycle" ], "controllers": [ "dojox/app/controllers/Load", "dojox/app/controllers/Transition", "dojox/app/controllers/Layout", "dojox/app/tests/domOrderByConstraint/controllers/UnloadViewController" ], //stores we are using "stores": { "listStore":{ "type": "dojo/store/Memory", "observable": true, "params": { "data": "domOrderByConstraint.listData" } } }, // The has section will include the sections for which the has checks are true. // For the sections with ! it will include the section if the has check is not true. "has" : { "ie9orLess" : { "controllers": [ "dojox/app/controllers/HistoryHash" ] }, "!ie9orLess" : { "controllers": [ "dojox/app/controllers/History" ] } }, //the name of the scene to load when the app is initialized. "defaultView": "footer,header,right,left,center", "defaultTransition": "slide", //scenes are groups of views and models loaded at once "views": { "footer": { "dependencies":["dojox/mobile/ListItem","dojox/mobile/RoundRectList","dojox/mobile/RoundRectCategory","dojox/mobile/Heading"], "template": "./main/footer.html", "views": { "header": { "dependencies":["dojox/mobile/ListItem","dojox/mobile/RoundRectList","dojox/mobile/RoundRectCategory","dojox/mobile/Heading"], "controller" : "./main/header.js", "template": "./main/header.html", "views": { "right": { "dependencies":["dojox/mobile/ListItem","dojox/mobile/RoundRectList","dojox/mobile/RoundRectCategory","dojox/mobile/Heading"], "template": "./main/right.html", "views": { "left": { "template": "./main/left.html", "views": { "center": { "controller" : "./main/main.js", "template": "./main/main.html" }, "center2": { "controller" : "./main/main2.js", "template": "./main/main2.html" } } } } }, "listMain": { "defaultView": "list", "defaultTransition": "slide", "views": { "list":{ "controller" : "./list/list.js", "template": "./list/list.html", "dependencies":["dojox/mobile/TextBox"] }, "itemDetails":{ "controller" : "./list/itemDetails.js", "template": "./list/itemDetails.html", "dependencies":["dojox/mobile/TextBox"], "defaultParams": {"cursor":"2"} } } }, "simple":{ "stores": { "namesStore":{ "type": "dojo/store/Memory", "params": { "data": "domOrderByConstraint.names" } } }, "models": { "names": { "modelLoader": "dojox/app/utils/simpleModel", "params":{ "store": {"$ref":"#views.simple.stores.namesStore"} } } }, "controller" : "./simple/simple.js", "template": "./simple/simple.html", "dependencies":["dojox/mobile/TextBox"] }, "date": { "controller": "./date/date.js", "template": "./date/date.html", "dependencies":["dojox/mobile/TextBox", "dojox/mobile/TextArea"] } } } } } //list view, include list view and details view } }