Solved! Go to Solution.
this.templates[ 1].layoutOptions.titleText = mapTitle;
array.forEach(this.templates, function(aTemplate) {
aTemplate.layoutOptions.titleText = mapTitle;
});var mapTitle = "Default Title";
t.layoutOptions = {"titleText": mapTitle,} t.layoutOptions = {"titleText": mapTitle}
this.templates[ 1].layoutOptions.titleText = mapTitle;
array.forEach(this.templates, function(aTemplate) {
aTemplate.layoutOptions.titleText = mapTitle;
});