Is it possible to dynamically set the title to other text instead of the the name of the widget? For example, I have a customized widget called "MapClickSearch". It is used to display location information for one address, I would like the title to be the current address instead of the name of the widget.
Thanks
Solved! Go to Solution.
Helen,
Sure in the Widget.js use a line like this:
query(".title-label", this.getPanel().domNode)[0].innerHTML = "Blah Blah...";
Assumes you have the 'dojo/query' require added.
Helen,
Sure in the Widget.js use a line like this:
query(".title-label", this.getPanel().domNode)[0].innerHTML = "Blah Blah...";
Assumes you have the 'dojo/query' require added.
Thank you, Robert. It works!
Helen,
Don't forget to mark this question as answered by clicking on the "Correct Answer" link.