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.
 
 
 
 
 
 

34 lines
1.0 KiB

define(["dojo/dom", "dojo/dom-style"],
function(dom, domStyle){
var repeatmodel = null; //repeat view data model
// show an item detail
var setDetailsContext = function(index){
// only set the cursor if it is different and valid
if(parseInt(index) != repeatmodel.cursorIndex && parseInt(index) < repeatmodel.model.length){
repeatmodel.set("cursorIndex", parseInt(index));
}
};
return {
// repeat view init
init: function(){
console.log("IN REPEATDETAILS");
repeatmodel = this.loadedModels.repeatmodels;
},
beforeActivate: function(){
// summary:
// view life cycle beforeActivate()
//
// if this.params["cursor"] is set use it to set the selected Details Context
if(this.params["cursor"]){
setDetailsContext(this.params["cursor"]);
}
if(dom.byId("tab1WrapperA")){
domStyle.set(dom.byId("tab1WrapperA"), "visibility", "visible"); // show the nav view if it being used
domStyle.set(dom.byId("tab1WrapperB"), "visibility", "visible"); // show the nav view if it being used
}
}
}
});