Hello,
I'm using the ArcGIS Maps SDK for JavaScript <arcgis-print> component in an mapping application. I'd like to have a default title when the pop-up appears for the user. Is that possible?
Thanks.
Solved! Go to Solution.
Hi @tad, thanks for posting your question here. This is available to you via the templateOptions property. Here's the doc:
and
https://developers.arcgis.com/javascript/latest/references/core/widgets/Print/TemplateOptions/
and here is a simple test app to demonstrate:
https://codepen.io/noash/pen/ByLqaZE?editors=1000
But the important bit is just this line:
printComponent.templateOptions = {title: "Add `title` to print component"};
Hi @tad, thanks for posting your question here. This is available to you via the templateOptions property. Here's the doc:
and
https://developers.arcgis.com/javascript/latest/references/core/widgets/Print/TemplateOptions/
and here is a simple test app to demonstrate:
https://codepen.io/noash/pen/ByLqaZE?editors=1000
But the important bit is just this line:
printComponent.templateOptions = {title: "Add `title` to print component"};
Thanks very much!