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.

127 lines (115 loc) 3.14 kB
{ "id": "modelApp", "name": "Model App", "description": "A modelApp", "splash": "splash", "dependencies": [ "dojox/app/utils/simpleModel", "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/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" ], //stores we are using "stores": { "listStore":{ "type": "dojo/store/Memory", "observable": true, "params": { "data": "modelApp.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": "home", "defaultTransition": "slide", //scenes are groups of views and models loaded at once "views": { "home": { "dependencies":["dojox/mobile/ListItem","dojox/mobile/RoundRectList","dojox/mobile/RoundRectCategory","dojox/mobile/Heading"], "template": "./main/main.html" }, //list view, include list view and details view "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": "modelApp.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"] } } }