sample skeleton application with dojo toolkit & arcgis js api v 4.30
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.
 
 
 
 
 
 

35 lines
974 B

define([
"dojo/dom",
"dojo/json",
"dijit/registry"
], function(dom, json, registry){
// module:
// dojox/mvc/tests/mobile/demo/MobileDemoGenerateActions
// summary:
// The action handlers for Generate example of this demo.
return {
switchToData: function(){
// summary:
// Called when the "Update Model" button is pressed on the Generate View page.
dom.byId("outerModelArea").style.display = "";
try {
dom.byId("modelArea").focus(); // hack: do this to force focus off of the textbox, bug on mobile?
dom.byId("viewArea").style.display = "none";
registry.byId("modelArea").set("value", json.stringify(registry.byId("view").get("children")));
} catch(e) {
console.log(e);
}
},
switchToGenerated: function(){
// summary:
// Called when the "Update View" button is pressed on the Generate Simple Form.
dom.byId("outerModelArea").style.display = "none";
dom.byId("viewArea").style.display = "";
}
};
});