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.
Hi @tad, thanks for posting your question here. This is available to you via the templateOptions property. Here's the doc:
https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-print/#templateOptions
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!
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.