<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do you create an interactive map title with the JavaScript Print Widget? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-create-an-interactive-map-title-with/m-p/384346#M35578</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, that's essentially what I'm doing.&amp;nbsp; But I'm using the print widget.&amp;nbsp; Seems like the templates have to be defined at the time that you startup the widget.&amp;nbsp; I'd like to have a user type in a title to be used in the template.&amp;nbsp; &amp;nbsp;I might have to ditch the widget and use the printTask to accomplish this.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2018 16:32:29 GMT</pubDate>
    <dc:creator>NilsBabel</dc:creator>
    <dc:date>2018-05-14T16:32:29Z</dc:date>
    <item>
      <title>How do you create an interactive map title with the JavaScript Print Widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-create-an-interactive-map-title-with/m-p/384344#M35576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone suggest a technique to create an interactive title with the esri print widget?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/print-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/print-amd.html"&gt;Print | API Reference | ArcGIS API for JavaScript 3.24&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to provide a text box for the user to type in a map title for the printout.&amp;nbsp; However, it seems like the way the print widget works is you have to create your print templates before you startup the print widget.&amp;nbsp; The templates contain the Title Text.&amp;nbsp; So I'm not sure how to inject feedback from the user into the print template.&amp;nbsp; Any ideas or other methods for doing this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2018 21:54:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-create-an-interactive-map-title-with/m-p/384344#M35576</guid>
      <dc:creator>NilsBabel</dc:creator>
      <dc:date>2018-05-11T21:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create an interactive map title with the JavaScript Print Widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-create-an-interactive-map-title-with/m-p/384345#M35577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nils,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You do that using the PrintTemplate class and the the layoutOptions.titleText:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/3/jsapi/printtemplate-amd.html#layoutoptions" title="https://developers.arcgis.com/javascript/3/jsapi/printtemplate-amd.html#layoutoptions" rel="nofollow noopener noreferrer" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jsapi/printtemplate-amd.html#layoutoptions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the PrintTemplate is feed to the PrintParameters.template and the PrintTask is executed using the PrintParameters.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; printparams &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;PrintParameters&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
printparams&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; map&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; template &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;PrintTemplate&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
template&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;label &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"blah blah"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
template&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layoutOptions &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; titleText&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"My Title"&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
printparams&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;template &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; template&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
printTask&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;execute&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;printparams&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:41:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-create-an-interactive-map-title-with/m-p/384345#M35577</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T17:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create an interactive map title with the JavaScript Print Widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-create-an-interactive-map-title-with/m-p/384346#M35578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, that's essentially what I'm doing.&amp;nbsp; But I'm using the print widget.&amp;nbsp; Seems like the templates have to be defined at the time that you startup the widget.&amp;nbsp; I'd like to have a user type in a title to be used in the template.&amp;nbsp; &amp;nbsp;I might have to ditch the widget and use the printTask to accomplish this.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 16:32:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-create-an-interactive-map-title-with/m-p/384346#M35578</guid>
      <dc:creator>NilsBabel</dc:creator>
      <dc:date>2018-05-14T16:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create an interactive map title with the JavaScript Print Widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-create-an-interactive-map-title-with/m-p/384347#M35579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nils,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;In this sample&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=widget_print_esri_request" title="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=widget_print_esri_request"&gt;https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=widget_print_esri_request&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The templates title is replaced with "Pool Permits". So you could use this sample as a starting point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 17:03:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-create-an-interactive-map-title-with/m-p/384347#M35579</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-05-14T17:03:50Z</dc:date>
    </item>
  </channel>
</rss>

