<?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: ArcGIS JavaScript 4.x Add New Print Component inside Custom Container in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-4-x-add-new-print-component/m-p/1640412#M87493</link>
    <description>&lt;P&gt;Thanks for posting your question here&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/443947"&gt;@dimesv&lt;/a&gt;. I think&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/833978"&gt;@JonathanDawe_BAS&lt;/a&gt;&amp;nbsp;gave the correct answer and linked to the doc. Here is a simple example using the print component:&lt;BR /&gt;&lt;A href="https://codepen.io/noash/pen/LEpjbeq?editors=1000" target="_blank"&gt;https://codepen.io/noash/pen/LEpjbeq?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Aug 2025 16:22:33 GMT</pubDate>
    <dc:creator>Noah-Sager</dc:creator>
    <dc:date>2025-08-08T16:22:33Z</dc:date>
    <item>
      <title>ArcGIS JavaScript 4.x Add New Print Component inside Custom Container</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-4-x-add-new-print-component/m-p/1640238#M87486</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;According to the documentation Esri is migrating from widgets to components. This is further detailed here:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/components-transition-plan/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/components-transition-plan/&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;How do we move a widget to a component when the container is not inside arcgis-map?&amp;nbsp; In the widgets approach, we could define what the container for the print widget would be and set the view.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Widgets&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import Print from "@arcgis/core/widgets/Print";

const print = new Print({
  container: "my-custom-print-container",
  view: view,
  printServiceUrl: "https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the component approach, we cannot specify what the container should be or set the view. This means that the only way to use the Print component is by placing it inside the map which is not where we want it to be.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;lt;arcgis-map item-id="45725ba7d9fb47a0925398919b13d1fa"&amp;gt;
 &amp;lt;arcgis-print position="top-right"&amp;gt;&amp;lt;/arcgis-print&amp;gt;
&amp;lt;/arcgis-map&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's say I have an application built using Calcite Components, for example something like what is described below. How do I place the Print component inside the calcite-shell-panel? If I do the below, I will throw an error stating that &lt;FONT color="#FF0000"&gt;An assigned view is required to print&lt;/FONT&gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/tutorials/create-a-web-app-using-components/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/tutorials/create-a-web-app-using-components/&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="javascript"&gt;  &amp;lt;calcite-shell content-behind&amp;gt;
    &amp;lt;calcite-shell-panel slot="panel-start" display-mode="float-content"&amp;gt;
        // How do I put the print component here?
        &amp;lt;arcgis-print&amp;gt;&amp;lt;/arcgis-print&amp;gt;
    &amp;lt;/calcite-shell-panel&amp;gt;
    &amp;lt;arcgis-map id="mapEl" item-id="210c5b77056846808c7a5ce93920be81"&amp;gt;
      &amp;lt;arcgis-zoom position="top-right"&amp;gt;&amp;lt;/arcgis-zoom&amp;gt;
    &amp;lt;/arcgis-map&amp;gt;
  &amp;lt;/calcite-shell&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can these components be used outside the map component? If not, this is highly restrictive. Note that in the Portal for ArcGIS Map Viewer the Print and Layer List are outside the map component. We also have Side Panels outside the map in a similar manner.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jose De Sousa&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 00:23:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-4-x-add-new-print-component/m-p/1640238#M87486</guid>
      <dc:creator>dimesv</dc:creator>
      <dc:date>2025-08-08T00:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JavaScript 4.x Add New Print Component inside Custom Container</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-4-x-add-new-print-component/m-p/1640301#M87489</link>
      <description>&lt;P&gt;You will just need to include a reference-element id to link the component to the id of your arcgis-map component. &lt;A href="https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component:~:text=The%20second%20is%20to%20use%20the%20reference%2Delement%20attribute%20on%20the%20component.%20By%20passing%20the%20id%20of%20the%20Map%20or%20Scene%20component%20into%20this%20attribute%2C%20you%20can%20position%20components%20from%20the%20%40arcgis/map%2Dcomponents%20package%20anywhere%20in%20the%20DOM%20while%20still%20maintaining%20a%20connection%20to%20the%20Map%20or%20Scene." target="_self"&gt;This documentation gives an example.&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 11:33:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-4-x-add-new-print-component/m-p/1640301#M87489</guid>
      <dc:creator>JonathanDawe_BAS</dc:creator>
      <dc:date>2025-08-08T11:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JavaScript 4.x Add New Print Component inside Custom Container</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-4-x-add-new-print-component/m-p/1640412#M87493</link>
      <description>&lt;P&gt;Thanks for posting your question here&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/443947"&gt;@dimesv&lt;/a&gt;. I think&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/833978"&gt;@JonathanDawe_BAS&lt;/a&gt;&amp;nbsp;gave the correct answer and linked to the doc. Here is a simple example using the print component:&lt;BR /&gt;&lt;A href="https://codepen.io/noash/pen/LEpjbeq?editors=1000" target="_blank"&gt;https://codepen.io/noash/pen/LEpjbeq?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 16:22:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-4-x-add-new-print-component/m-p/1640412#M87493</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2025-08-08T16:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JavaScript 4.x Add New Print Component inside Custom Container</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-4-x-add-new-print-component/m-p/1640748#M87499</link>
      <description>&lt;P&gt;Thank you Jonathan. That's exactly what i was looking for.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 04:10:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-4-x-add-new-print-component/m-p/1640748#M87499</guid>
      <dc:creator>dimesv</dc:creator>
      <dc:date>2025-08-11T04:10:45Z</dc:date>
    </item>
  </channel>
</rss>

