<?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: Add the print widget to a button in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-the-print-widget-to-a-button/m-p/1093211#M74462</link>
    <description>&lt;P&gt;Works great. Thank you!!&lt;/P&gt;</description>
    <pubDate>Fri, 27 Aug 2021 17:17:52 GMT</pubDate>
    <dc:creator>socialpromotions</dc:creator>
    <dc:date>2021-08-27T17:17:52Z</dc:date>
    <item>
      <title>Add the print widget to a button</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-the-print-widget-to-a-button/m-p/1093162#M74450</link>
      <description>&lt;P&gt;Hi all, I have added the print widget to my web map but right now it is always present there on the map in a big window and takes up a lot of space. I would like to move this widget to a button which when clicked opens the widget preferably like other buttons in the image. I am new to javascript so some details would be really helpful. I have only added this code from ArcGIS API with no div which already adds the widget to the map.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Print&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;view:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;view&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//&amp;nbsp;Adds&amp;nbsp;widget&amp;nbsp;below&amp;nbsp;other&amp;nbsp;elements&amp;nbsp;in&amp;nbsp;the&amp;nbsp;top&amp;nbsp;left&amp;nbsp;corner&amp;nbsp;of&amp;nbsp;the&amp;nbsp;view&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;view&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ui&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;add&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"top-right"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Would also like to know if anyone has other references for a different print widget that gives option to set extent of the map to be printed/exported. This does allow to set the extent of the map to be printed, but only by providing width and height by numbers without any preview. It does not neccessarily have to come with layout view with scale and everything.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Aug 2021 15:48:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-the-print-widget-to-a-button/m-p/1093162#M74450</guid>
      <dc:creator>socialpromotions</dc:creator>
      <dc:date>2021-08-27T15:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Add the print widget to a button</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-the-print-widget-to-a-button/m-p/1093170#M74451</link>
      <description>&lt;P&gt;Check out the expand widget:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var print = new Print({
       view: view
      });

printExpand = new Expand({
  expandIconClass: "esri-icon-printer",
  expandTooltip: "Expand Print",
  view: view,
  content: print
});

view.ui.add(printExpand, "top-right");&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 16:02:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-the-print-widget-to-a-button/m-p/1093170#M74451</guid>
      <dc:creator>BenRomlein</dc:creator>
      <dc:date>2021-08-27T16:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Add the print widget to a button</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-the-print-widget-to-a-button/m-p/1093211#M74462</link>
      <description>&lt;P&gt;Works great. Thank you!!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 17:17:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-the-print-widget-to-a-button/m-p/1093211#M74462</guid>
      <dc:creator>socialpromotions</dc:creator>
      <dc:date>2021-08-27T17:17:52Z</dc:date>
    </item>
  </channel>
</rss>

