<?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: General question: Using API-documentation and EXPAND-Widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/general-question-using-api-documentation-and/m-p/1524419#M85428</link>
    <description>&lt;P&gt;The "click" event is not available in the expand widget. Instead, I would recommend watching the "expanded" property, as shown in the code snippet below.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;expandbutton.watch("expanded", (value)=&amp;gt;{
  console.log(`expanded: ${value}`);
})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2024 15:07:03 GMT</pubDate>
    <dc:creator>AnneFitz</dc:creator>
    <dc:date>2024-08-20T15:07:03Z</dc:date>
    <item>
      <title>General question: Using API-documentation and EXPAND-Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/general-question-using-api-documentation-and/m-p/1524355#M85422</link>
      <description>&lt;P&gt;Dear users,&lt;/P&gt;&lt;P&gt;I`m still on my way to learn "ArcGIS Maps SDK JS".&lt;/P&gt;&lt;P&gt;I have successfully created an Expand-widget like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const expandbutton = new Expand({
  view: view,
  content: "&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;Legende&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;",
  label: "Legende",
  id: "legendendings",
  expandTooltip:"Legende",
  expanded:false,
  container: document.createElement("div")
});

view.ui.add(expandbutton, "bottom-right");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the API-documentation (&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html&lt;/A&gt;) I find the "on"-function.&lt;/P&gt;&lt;P&gt;I would like to test it like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;expandbutton.on("click", function(event){
 alert ("hello");
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...but if I lick on the expandbutton no "hello" appears. Do I misunderstand someting?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 13:16:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/general-question-using-api-documentation-and/m-p/1524355#M85422</guid>
      <dc:creator>KaiBehncke</dc:creator>
      <dc:date>2024-08-20T13:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: General question: Using API-documentation and EXPAND-Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/general-question-using-api-documentation-and/m-p/1524419#M85428</link>
      <description>&lt;P&gt;The "click" event is not available in the expand widget. Instead, I would recommend watching the "expanded" property, as shown in the code snippet below.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;expandbutton.watch("expanded", (value)=&amp;gt;{
  console.log(`expanded: ${value}`);
})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 15:07:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/general-question-using-api-documentation-and/m-p/1524419#M85428</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2024-08-20T15:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: General question: Using API-documentation and EXPAND-Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/general-question-using-api-documentation-and/m-p/1524945#M85454</link>
      <description>&lt;P&gt;Thank you very much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 06:07:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/general-question-using-api-documentation-and/m-p/1524945#M85454</guid>
      <dc:creator>KaiBehncke</dc:creator>
      <dc:date>2024-08-21T06:07:20Z</dc:date>
    </item>
  </channel>
</rss>

