AnsweredAssumed Answered

setTitle not working in infoTemplate

Question asked by kenbuja Champion on Apr 25, 2013
Latest reply on Apr 25, 2013 by maxwellr
In my app using the 3.4 API, I'm attempting to set the title on an infoTemplate. I've tried

var infoTemplate = new esri.InfoTemplate("Title", contentString);

and

var infoTemplate = new esri.InfoTemplate();
var titleText = "<div>" + "Title" + "</div>"
infoTemplate.setTitle(titleText); //also tried infoTemplate.setTitle("Title");
infoTemplate.setContent(contentString);

but neither of those set the title. The contentString shows up properly, though.

Outcomes