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.

99 lines (89 loc) 2.9 kB
{ "id": "multiSceneApp", "name": "Multi Scene App", "description": "A multiSceneApp", "splash": "splash", "dependencies": [ "dojox/mobile/View", //Temporary work around for getting a null when calling getParent "dojox/mobile/TabBar", "dojox/mobile/RoundRect", "dojox/mobile/TabBarButton", "dojox/mobile/Button", "dojox/mobile/RoundRect", "dojox/mobile/Heading" ], // Modules for the app. The are basically used as the second // array of mixins in a dojo.declare(). Modify the top level behavior // of the app, 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" //"dojox/app/module/phonegap", //"dojox/app/module/somePlugin" ], "controllers": [ "dojox/app/controllers/History", "dojox/app/controllers/Load", "dojox/app/controllers/Transition", "dojox/app/controllers/Layout" ], //stores we are using "stores": {}, "template": "./application.html", //models and instantiation parameters for the models. Including 'type' as a property allows //one to overide the class that will be used for the model. By default it is dojox/mvc/model "models": {}, //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": { //simple scene which loads all views and shows the default first "home": { "dependencies":["dojox/mobile/RoundRectList","dojox/mobile/ListItem", "dojox/mobile/EdgeToEdgeCategory"], "template": "./templates/simple/home.html" }, "main":{ //all views in the main scene will be bound to the user model "models": [], "template": "./simple.html", "defaultView": "main", "defaultTransition": "slide", //the views available to this scene "views": { "main":{ "template": "./templates/simple/main.html" }, "second":{ "template": "./templates/simple/second.html" }, "third":{ "template": "./templates/simple/third.html" } }, "dependencies":["dojox/mobile/RoundRectList","dojox/mobile/ListItem","dojox/mobile/EdgeToEdgeCategory","dojox/mobile/EdgeToEdgeList"] }, //simple scene which loads all views and shows the default first "tabscene": { //all views in the second scene will be bound to the user model "models": [], "template": "./tabScene.html", "defaultView": "tab1", "defaultTransition": "flip", //the views available to this scene "views": { "tab1":{ "template": "./templates/tabs/tab1.html" }, "tab2":{ "template": "./templates/tabs/tab2.html" }, "tab3":{ "template": "./templates/tabs/tab3.html" } }, "dependencies":["dojox/mobile/RoundRectList","dojox/mobile/ListItem", "dojox/mobile/EdgeToEdgeCategory"] } } }