<?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 Collapsed/Expanded events for the Expand widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/collapsed-expanded-events-for-the-expand-widget/m-p/1275205#M80739</link>
    <description>&lt;P&gt;Is there a way to have an event triggered when the Expand widget actually expand or collaspe ?&lt;/P&gt;&lt;P&gt;I would like to show or hide a DistanceMeasurement2D on the map accordingly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Apr 2023 12:36:15 GMT</pubDate>
    <dc:creator>FredericGoulet1</dc:creator>
    <dc:date>2023-04-04T12:36:15Z</dc:date>
    <item>
      <title>Collapsed/Expanded events for the Expand widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/collapsed-expanded-events-for-the-expand-widget/m-p/1275205#M80739</link>
      <description>&lt;P&gt;Is there a way to have an event triggered when the Expand widget actually expand or collaspe ?&lt;/P&gt;&lt;P&gt;I would like to show or hide a DistanceMeasurement2D on the map accordingly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 12:36:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/collapsed-expanded-events-for-the-expand-widget/m-p/1275205#M80739</guid>
      <dc:creator>FredericGoulet1</dc:creator>
      <dc:date>2023-04-04T12:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Collapsed/Expanded events for the Expand widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/collapsed-expanded-events-for-the-expand-widget/m-p/1275236#M80740</link>
      <description>&lt;P&gt;This can be easily achieved using the watch function of the widget and the expanded state.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const bgExpand = new Expand({
   view: view,
   content: basemapGallery
});   
        
// create a watch to trigger an event whenever expanded value changes.
bgExpand.watch("expanded", (expanded) =&amp;gt; {
   console.log(expanded);
}); &lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 04 Apr 2023 13:28:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/collapsed-expanded-events-for-the-expand-widget/m-p/1275236#M80740</guid>
      <dc:creator>RamaniGanason</dc:creator>
      <dc:date>2023-04-04T13:28:44Z</dc:date>
    </item>
  </channel>
</rss>

