You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
134 lines
3.2 KiB
134 lines
3.2 KiB
{ |
|
"id": "layoutApp2", |
|
"name": "layout App2", |
|
"description": "A layout App2", |
|
"splash": "splash", |
|
|
|
"loaderConfig": { |
|
"paths": { |
|
"layoutApp2": "../dojox/app/tests/layoutApp2" |
|
} |
|
}, |
|
|
|
"dependencies": [ |
|
"dojox/app/utils/simpleModel", |
|
"dojox/mobile/_base", |
|
"dojox/mobile/compat", |
|
"dojox/mobile/TabBar", |
|
"dojox/mobile/RoundRect", |
|
"dojox/mobile/TabBarButton", |
|
"dojox/mobile/Button", |
|
"dojox/mobile/RoundRect", |
|
"dojox/mobile/Heading", |
|
"dojo/store/Memory", |
|
"dojo/store/Observable", |
|
"dojox/mobile/EdgeToEdgeStoreList", |
|
"dojox/mobile/View", |
|
"dojox/app/widgets/Container" |
|
], |
|
|
|
"modules": [], |
|
|
|
"controllers": [ |
|
"dojox/app/controllers/Load", |
|
"dojox/app/controllers/Transition", |
|
"dojox/app/controllers/Layout", |
|
"dojox/app/tests/layoutApp2/controllers/UnloadViewController" |
|
], |
|
|
|
//stores we are using |
|
"stores": { |
|
"namesStore":{ |
|
"type": "dojo/store/Memory", |
|
"params": { |
|
"data": "modelApp.names" |
|
} |
|
}, |
|
"listStore":{ |
|
"type": "dojo/store/Memory", |
|
"observable": true, |
|
"params": { |
|
"data": "modelApp.listData" |
|
} |
|
} |
|
}, |
|
|
|
//models and instantiation parameters for the models. Including 'type' as a property allows |
|
//one to override the class that will be used for the model. |
|
"models": { |
|
"names": { |
|
"modelLoader": "dojox/app/utils/simpleModel", |
|
"params":{ |
|
"store": {"$ref":"#stores.namesStore"} |
|
} |
|
} |
|
}, |
|
|
|
// 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" |
|
] |
|
} |
|
}, |
|
|
|
// this app uses constraints and multiple files in defaultView instead of an outer template for a table layout |
|
// "template": "layoutApp2/views/navigation.html", |
|
|
|
//the name of the view to load when the app is initialized. |
|
"defaultView": "navigation+simple", |
|
|
|
// these are the possilbe defaultTransitions |
|
//"defaultTransition": "slide", |
|
//"defaultTransition": "none", |
|
//"defaultTransition": "fade", |
|
"defaultTransition": "fade", |
|
|
|
"views": { |
|
"navigation":{ |
|
"constraint" : "left", |
|
"template": "layoutApp2/views/navigation.html" |
|
}, |
|
"simple":{ |
|
"controller" : "layoutApp2/views/simple.js", |
|
"constraint" : "center", |
|
"template": "layoutApp2/views/simple.html", |
|
"dependencies":["dojox/mobile/TextBox"] |
|
}, |
|
|
|
//list view, include list view and details view |
|
"listMain": { |
|
"defaultView": "list", |
|
"transition": "flip", |
|
"constraint" : "center", |
|
|
|
"views": { |
|
"list":{ |
|
"controller" : "layoutApp2/views/list.js", |
|
"template": "layoutApp2/views/list.html", |
|
"dependencies":["dojox/mobile/TextBox"] |
|
}, |
|
"itemDetails":{ |
|
"controller" : "layoutApp2/views/itemDetails.js", |
|
"template": "layoutApp2/views/itemDetails.html", |
|
"dependencies":["dojox/mobile/TextBox"], |
|
"defaultParams": {"cursor":"2"} |
|
} |
|
} |
|
}, |
|
|
|
"date": { |
|
"controller": "layoutApp2/views/date.js", |
|
"template": "layoutApp2/views/date.html", |
|
"constraint" : "center", |
|
"dependencies":["dojox/mobile/DatePicker", "dojox/mobile/Opener"] |
|
} |
|
} |
|
}
|
|
|