<?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 Hide/show events for Popup in JS 4.0 Beta 2? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-show-events-for-popup-in-js-4-0-beta-2/m-p/749117#M69311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the ArcGIS API 4.0 Beta 2 for JavaScript, how can I listen for the MapView's popup to open or close? Specifically, I need to run code when the user closes the popup. I tried this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;view.popup.on("hide", myFunction);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;view.popup.on("blur", myFunction);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But neither of those events seems to exist for a Popup. How do I do it, or is it not possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Dec 2015 20:40:46 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2015-12-04T20:40:46Z</dc:date>
    <item>
      <title>Hide/show events for Popup in JS 4.0 Beta 2?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-show-events-for-popup-in-js-4-0-beta-2/m-p/749117#M69311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the ArcGIS API 4.0 Beta 2 for JavaScript, how can I listen for the MapView's popup to open or close? Specifically, I need to run code when the user closes the popup. I tried this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;view.popup.on("hide", myFunction);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;view.popup.on("blur", myFunction);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But neither of those events seems to exist for a Popup. How do I do it, or is it not possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 20:40:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-show-events-for-popup-in-js-4-0-beta-2/m-p/749117#M69311</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-12-04T20:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hide/show events for Popup in JS 4.0 Beta 2?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-show-events-for-popup-in-js-4-0-beta-2/m-p/749118#M69312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gary,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You need to watch the visible property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;view.popup.watch("visible", function(name, oldValue, newValue){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.info(name, oldValue, newValue);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; })&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:50:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-show-events-for-popup-in-js-4-0-beta-2/m-p/749118#M69312</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T07:50:18Z</dc:date>
    </item>
  </channel>
</rss>

