<?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 contents of popup in a div in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/contents-of-popup-in-a-div/m-p/1177262#M77471</link>
    <description>&lt;P&gt;In WAB was able to capture the contents of the popup, customize it and display them in a div.&lt;/P&gt;&lt;P&gt;In JS 4, after a clicking a feature, want to know of how to store all the formatted content from a default popup to a variable so they can be assigned to a div. I don't use popuptemplate because I deal with hundreds of layers with different fields.&lt;/P&gt;&lt;P&gt;So, in a word the task is upon clicking on a feature, capture the popup contents and prevent the display of the default popup, since I will assign it to a div. The&amp;nbsp; dockoptions not a good option for me.&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2022 16:35:56 GMT</pubDate>
    <dc:creator>LefterisKoumis</dc:creator>
    <dc:date>2022-05-25T16:35:56Z</dc:date>
    <item>
      <title>contents of popup in a div</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/contents-of-popup-in-a-div/m-p/1177262#M77471</link>
      <description>&lt;P&gt;In WAB was able to capture the contents of the popup, customize it and display them in a div.&lt;/P&gt;&lt;P&gt;In JS 4, after a clicking a feature, want to know of how to store all the formatted content from a default popup to a variable so they can be assigned to a div. I don't use popuptemplate because I deal with hundreds of layers with different fields.&lt;/P&gt;&lt;P&gt;So, in a word the task is upon clicking on a feature, capture the popup contents and prevent the display of the default popup, since I will assign it to a div. The&amp;nbsp; dockoptions not a good option for me.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 16:35:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/contents-of-popup-in-a-div/m-p/1177262#M77471</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2022-05-25T16:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: contents of popup in a div</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/contents-of-popup-in-a-div/m-p/1177276#M77472</link>
      <description>&lt;P&gt;You might want to look at the Feature widget.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is the widget used by the Popup to display the contents. There's a couple of samples linked in that page that show various ways you can use it for displaying the content as you wish.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 16:55:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/contents-of-popup-in-a-div/m-p/1177276#M77472</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-05-25T16:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: contents of popup in a div</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/contents-of-popup-in-a-div/m-p/1177307#M77474</link>
      <description>&lt;P&gt;Thank you. The feature widget page states: "&lt;SPAN&gt;The Feature widget displays a graphic according to its&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html" target="_blank" rel="noopener"&gt;PopupTemplate&lt;/A&gt;&lt;SPAN&gt;."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Since I don't use popuptemplate, then it wouldn't be applicable to me.&amp;nbsp;All examples use a popuptemplate.&amp;nbsp; Also, a detail I omitted to mention about my app is that the feature layers on the map are not from web map rather REST services.&lt;/P&gt;&lt;P&gt;I get the default popup displayed at the feature location without using popuptemplate. I am trying to capture the&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;view&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;popup&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;content&amp;nbsp; so I can store it in a div.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 May 2022 19:05:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/contents-of-popup-in-a-div/m-p/1177307#M77474</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2022-05-25T19:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: contents of popup in a div</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/contents-of-popup-in-a-div/m-p/1177339#M77476</link>
      <description>&lt;P&gt;Are they always individual graphics in a GraphicsLayer or could you put them in a client-side FeatureLayer? If you put them in a client-side FeatureLayer or they are already FeatureLayers, you can have it create a default PopupTemplate for you.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#createPopupTemplate" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#createPopupTemplate&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I guess I'm a little confused, if you don't have a PopupTemplate, the layer has no Popup, and there is no content to override? You could do it all manually, using view.hitTest but you would still need a PopupTemplate of some sort for the Popup to display. There is CustomContent for popups you can use too.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 19:28:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/contents-of-popup-in-a-div/m-p/1177339#M77476</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-05-25T19:28:57Z</dc:date>
    </item>
  </channel>
</rss>

