<?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: How to launch a custom widget on mouse click in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-launch-a-custom-widget-on-mouse-click/m-p/1390089#M11242</link>
    <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;To clone and modify a sidebar widget in Esri's Experience Builder Developer Edition, and then add a configuration setting to link it to an out-of-the-box (OOTB) map widget for controlling its collapse and expand state, follow these steps:&lt;/P&gt;&lt;H3&gt;1. Clone the Sidebar Widget&lt;/H3&gt;&lt;P&gt;First, you've already identified the steps to clone the widget from its original location to your extensions directory. Ensure you copy the entire folder to your target directory:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Source:&lt;/STRONG&gt; C:\ArcGISExperienceBuilder\client\dist\widgets\layout\sidebar&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Destination:&lt;/STRONG&gt; C:\ArcGISExperienceBuilder\client\your-extensions\widgets\mySideBar2\&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;2. Modify the Widget for Configuration&lt;/H3&gt;&lt;P&gt;To add a configuration setting that allows the sidebar to be linked with a map widget, you'll need to make modifications in several files within your cloned widget. These modifications typically involve:&lt;/P&gt;&lt;H4&gt;a. config.json&lt;/H4&gt;&lt;P&gt;Add a new property in the config.json file of your mySideBar2 widget to hold the reference to the map widget. This could be an identifier or a name that matches the map widget you want to interact with.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;json&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt; &lt;SPAN class=""&gt;"linkedMapWidgetId"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;""&lt;/SPAN&gt; &lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;H4&gt;b. widget.tsx or widget.js&lt;/H4&gt;&lt;P&gt;In your main widget file (which might be a TypeScript .tsx file or a JavaScript .js file, depending on your development environment), add the logic to read this configuration and implement the communication with the map widget.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Import necessary modules&lt;/STRONG&gt; for messaging or state management, if not already imported.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Read the configuration&lt;/STRONG&gt; in your widget's code to get the linkedMapWidgetId.&lt;/LI&gt;&lt;LI&gt;Implement &lt;STRONG&gt;functionality to listen for commands&lt;/STRONG&gt; from the map widget. This could involve using the Experience Builder's messaging framework to listen for messages/events sent by the map widget.&lt;/LI&gt;&lt;/OL&gt;&lt;H4&gt;c. Implement Collapse and Expand Functionality&lt;/H4&gt;&lt;P&gt;You'll need to ensure your sidebar widget can programmatically collapse and expand. This might involve manipulating the widget's state or CSS classes to show or hide the sidebar. For example, in React, you might use state to toggle a class:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;jsx&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;// Example state toggle in React component&lt;/SPAN&gt; &lt;SPAN class=""&gt;this&lt;/SPAN&gt;.&lt;SPAN class=""&gt;state&lt;/SPAN&gt; = { &lt;SPAN class=""&gt;isCollapsed&lt;/SPAN&gt;: &lt;SPAN class=""&gt;false&lt;/SPAN&gt;, }; toggleSidebar = &lt;SPAN class=""&gt;() =&amp;gt;&lt;/SPAN&gt; { &lt;SPAN class=""&gt;this&lt;/SPAN&gt;.&lt;SPAN class=""&gt;setState&lt;/SPAN&gt;({ &lt;SPAN class=""&gt;isCollapsed&lt;/SPAN&gt;: !&lt;SPAN class=""&gt;this&lt;/SPAN&gt;.&lt;SPAN class=""&gt;state&lt;/SPAN&gt;.&lt;SPAN class=""&gt;isCollapsed&lt;/SPAN&gt; }); }; &lt;SPAN class=""&gt;// Use `isCollapsed` state to add a class that controls visibility or styling&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;H3&gt;3. Communication Between Widgets&lt;/H3&gt;&lt;P&gt;For the sidebar to receive commands from the map widget, you'll need to use the Experience Builder's messaging framework. You'll likely modify the map widget to send messages that your sidebar widget will listen for.&lt;/P&gt;&lt;H4&gt;Sending a Message from the Map Widget&lt;/H4&gt;&lt;P&gt;When a specific action occurs in the map widget that should collapse or expand the sidebar, send a message:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;js&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;const&lt;/SPAN&gt; message = { &lt;SPAN class=""&gt;action&lt;/SPAN&gt;: &lt;SPAN class=""&gt;'toggleSidebar'&lt;/SPAN&gt;, &lt;SPAN class=""&gt;data&lt;/SPAN&gt;: {&lt;SPAN class=""&gt;/* Additional data if needed */&lt;/SPAN&gt;} }; &lt;SPAN class=""&gt;this&lt;/SPAN&gt;.&lt;SPAN class=""&gt;props&lt;/SPAN&gt;.&lt;SPAN class=""&gt;dispatch&lt;/SPAN&gt;({ &lt;SPAN class=""&gt;type&lt;/SPAN&gt;: &lt;SPAN class=""&gt;'WIDGET_COMMUNICATION'&lt;/SPAN&gt;, &lt;SPAN class=""&gt;payload&lt;/SPAN&gt;: message });&lt;/DIV&gt;&lt;/DIV&gt;&lt;H4&gt;Listening for the Message in mySideBar2&lt;/H4&gt;&lt;P&gt;In your sidebar widget, listen for messages and react accordingly:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;js&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;componentDidMount&lt;/SPAN&gt;() { &lt;SPAN class=""&gt;window&lt;/SPAN&gt;.&lt;SPAN class=""&gt;appStore&lt;/SPAN&gt;.&lt;SPAN class=""&gt;subscribe&lt;/SPAN&gt;(&lt;SPAN class=""&gt;() =&amp;gt;&lt;/SPAN&gt; { &lt;SPAN class=""&gt;const&lt;/SPAN&gt; state = &lt;SPAN class=""&gt;window&lt;/SPAN&gt;.&lt;SPAN class=""&gt;appStore&lt;/SPAN&gt;.&lt;SPAN class=""&gt;getState&lt;/SPAN&gt;(); &lt;SPAN class=""&gt;// Check for messages related to your widget and react&lt;/SPAN&gt; }); }&lt;/DIV&gt;&lt;/DIV&gt;&lt;H3&gt;4. Test Your Implementation&lt;/H3&gt;&lt;P&gt;After implementing the changes, test the sidebar and map widget interaction thoroughly. Ensure that the sidebar responds correctly to commands from the map widget to collapse or expand.&lt;/P&gt;&lt;H3&gt;5. Update Widget Manifest&lt;/H3&gt;&lt;P&gt;Finally, don't forget to update the manifest (manifest.json) of your mySideBar2 widget, if necessary, to reflect any new dependencies or capabilities introduced by your modifications.&lt;/P&gt;&lt;P&gt;This is a high-level overview, and the exact implementation details will depend on your specific requirements and the current codebase of the widgets you are working with. Familiarity with React (if using .tsx), the Experience Builder framework, and JavaScript will be essential throughout this process.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 03 Mar 2024 23:28:13 GMT</pubDate>
    <dc:creator>FredericPoliart_EsriAU</dc:creator>
    <dc:date>2024-03-03T23:28:13Z</dc:date>
    <item>
      <title>How to launch a custom widget on mouse click</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-launch-a-custom-widget-on-mouse-click/m-p/1389994#M11237</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have created a custom widget in ArcGIS Experience builder. This widget takes a selected feature from the map and show the attribute information of the selected feature. The widget is working fine. However I want to use it as follows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want to place this widget in the map, instead I want to launch the widget on mouse click. Like use selects the feature and my widget should popup with the selected feature as a an input property. At the moment when i select a feature, the feature info dialog gets popped up and then i click my widget that is placed on the map. I want to directly launch the custom widget on mouse click and also i don't want feature info window gets opened.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be highly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2024 11:12:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-launch-a-custom-widget-on-mouse-click/m-p/1389994#M11237</guid>
      <dc:creator>sidd</dc:creator>
      <dc:date>2024-03-03T11:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to launch a custom widget on mouse click</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-launch-a-custom-widget-on-mouse-click/m-p/1390086#M11240</link>
      <description>&lt;P&gt;1. Create a properly formatted popup during the web-map creation process (use URL links, HTML , colours etc)&lt;/P&gt;&lt;P&gt;2. Drop a FeatureInfo widget inside a side-panel (for example)&lt;/P&gt;&lt;P&gt;3. Link the FeatureInfo widget to the selection of your map's layer (thus showing whatever is selected)&lt;/P&gt;&lt;P&gt;Make sure you pick&amp;nbsp;"Selected features" (not Default)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredericPoliart_EsriAU_0-1709507414831.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96655iB03B1E859ED17773/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredericPoliart_EsriAU_0-1709507414831.png" alt="FredericPoliart_EsriAU_0-1709507414831.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;4. In the FeatureInfo properties : select "respect the style" (that means use whtever design is coming from your popup in web-map, as-is)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredericPoliart_EsriAU_1-1709507522139.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96656i9DAC6E650262E690/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredericPoliart_EsriAU_1-1709507522139.png" alt="FredericPoliart_EsriAU_1-1709507522139.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;5. Run and select a polygon with simple click.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now if you want to auto-open the side panel when 1 or more features are clicked and auto-hide it when nothing is selected on the map,&amp;nbsp; you will need to create a custom widget, and probably clone the side panel widget (callit sidePanel2) and make it listen to your open/close commands.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;a. Copy the whole widget from C:\ArcGISExperienceBuilder\client\dist\widgets\layout\sidebar&amp;nbsp;&lt;/P&gt;&lt;P&gt;b. rename the folder to nasir_sidebar : and copy to&amp;nbsp;C:\ArcGISExperienceBuilder\client\your-extensions\widgets\&lt;BR /&gt;&lt;BR /&gt;c. edit the file&amp;nbsp;C:\ArcGISExperienceBuilder\client\your-extensions\widgets\nasir_sidebar\&lt;STRONG&gt;manifest.json&lt;BR /&gt;&lt;/STRONG&gt;modify the name to match exactly the foldername : "nasir_sidebar" &amp;amp; save&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;d. restart server and clientsin separate CMD prompt windows&amp;nbsp; with &lt;STRONG&gt;npm start&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;e. you should now have a new&amp;nbsp;nasir_sidebar component, and you can modify its code freely.&amp;nbsp;&lt;/P&gt;&lt;P&gt;f. first thing is to add a config parameter to a map widget,&amp;nbsp; so your side panel is somehow "linked" to a map (and its behaviour):&amp;nbsp;&lt;BR /&gt;YOur sidepanel will have a new option , something like this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredericPoliart_EsriAU_2-1709507986945.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96660iDCB8BAAA01F9E0A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredericPoliart_EsriAU_2-1709507986945.png" alt="FredericPoliart_EsriAU_2-1709507986945.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;g. Once you have that, you will be able to get the status of the map and perhaps get the status of changes/selected items&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;e. Another thing you need to do is to find out how they (esri) expand/collapse the side panel&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredericPoliart_EsriAU_3-1709508085527.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96661i724C0DCC2ED42B57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredericPoliart_EsriAU_3-1709508085527.png" alt="FredericPoliart_EsriAU_3-1709508085527.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;^^ observe what happens in your&amp;nbsp;&lt;STRONG&gt;nasir_sidebar&lt;/STRONG&gt;, when the user opens/closes the sidebar.&lt;BR /&gt;&lt;BR /&gt;Let us know how you go &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2024 23:22:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-launch-a-custom-widget-on-mouse-click/m-p/1390086#M11240</guid>
      <dc:creator>FredericPoliart_EsriAU</dc:creator>
      <dc:date>2024-03-03T23:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to launch a custom widget on mouse click</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-launch-a-custom-widget-on-mouse-click/m-p/1390089#M11242</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;To clone and modify a sidebar widget in Esri's Experience Builder Developer Edition, and then add a configuration setting to link it to an out-of-the-box (OOTB) map widget for controlling its collapse and expand state, follow these steps:&lt;/P&gt;&lt;H3&gt;1. Clone the Sidebar Widget&lt;/H3&gt;&lt;P&gt;First, you've already identified the steps to clone the widget from its original location to your extensions directory. Ensure you copy the entire folder to your target directory:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Source:&lt;/STRONG&gt; C:\ArcGISExperienceBuilder\client\dist\widgets\layout\sidebar&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Destination:&lt;/STRONG&gt; C:\ArcGISExperienceBuilder\client\your-extensions\widgets\mySideBar2\&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;2. Modify the Widget for Configuration&lt;/H3&gt;&lt;P&gt;To add a configuration setting that allows the sidebar to be linked with a map widget, you'll need to make modifications in several files within your cloned widget. These modifications typically involve:&lt;/P&gt;&lt;H4&gt;a. config.json&lt;/H4&gt;&lt;P&gt;Add a new property in the config.json file of your mySideBar2 widget to hold the reference to the map widget. This could be an identifier or a name that matches the map widget you want to interact with.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;json&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt; &lt;SPAN class=""&gt;"linkedMapWidgetId"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;""&lt;/SPAN&gt; &lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;H4&gt;b. widget.tsx or widget.js&lt;/H4&gt;&lt;P&gt;In your main widget file (which might be a TypeScript .tsx file or a JavaScript .js file, depending on your development environment), add the logic to read this configuration and implement the communication with the map widget.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Import necessary modules&lt;/STRONG&gt; for messaging or state management, if not already imported.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Read the configuration&lt;/STRONG&gt; in your widget's code to get the linkedMapWidgetId.&lt;/LI&gt;&lt;LI&gt;Implement &lt;STRONG&gt;functionality to listen for commands&lt;/STRONG&gt; from the map widget. This could involve using the Experience Builder's messaging framework to listen for messages/events sent by the map widget.&lt;/LI&gt;&lt;/OL&gt;&lt;H4&gt;c. Implement Collapse and Expand Functionality&lt;/H4&gt;&lt;P&gt;You'll need to ensure your sidebar widget can programmatically collapse and expand. This might involve manipulating the widget's state or CSS classes to show or hide the sidebar. For example, in React, you might use state to toggle a class:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;jsx&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;// Example state toggle in React component&lt;/SPAN&gt; &lt;SPAN class=""&gt;this&lt;/SPAN&gt;.&lt;SPAN class=""&gt;state&lt;/SPAN&gt; = { &lt;SPAN class=""&gt;isCollapsed&lt;/SPAN&gt;: &lt;SPAN class=""&gt;false&lt;/SPAN&gt;, }; toggleSidebar = &lt;SPAN class=""&gt;() =&amp;gt;&lt;/SPAN&gt; { &lt;SPAN class=""&gt;this&lt;/SPAN&gt;.&lt;SPAN class=""&gt;setState&lt;/SPAN&gt;({ &lt;SPAN class=""&gt;isCollapsed&lt;/SPAN&gt;: !&lt;SPAN class=""&gt;this&lt;/SPAN&gt;.&lt;SPAN class=""&gt;state&lt;/SPAN&gt;.&lt;SPAN class=""&gt;isCollapsed&lt;/SPAN&gt; }); }; &lt;SPAN class=""&gt;// Use `isCollapsed` state to add a class that controls visibility or styling&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;H3&gt;3. Communication Between Widgets&lt;/H3&gt;&lt;P&gt;For the sidebar to receive commands from the map widget, you'll need to use the Experience Builder's messaging framework. You'll likely modify the map widget to send messages that your sidebar widget will listen for.&lt;/P&gt;&lt;H4&gt;Sending a Message from the Map Widget&lt;/H4&gt;&lt;P&gt;When a specific action occurs in the map widget that should collapse or expand the sidebar, send a message:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;js&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;const&lt;/SPAN&gt; message = { &lt;SPAN class=""&gt;action&lt;/SPAN&gt;: &lt;SPAN class=""&gt;'toggleSidebar'&lt;/SPAN&gt;, &lt;SPAN class=""&gt;data&lt;/SPAN&gt;: {&lt;SPAN class=""&gt;/* Additional data if needed */&lt;/SPAN&gt;} }; &lt;SPAN class=""&gt;this&lt;/SPAN&gt;.&lt;SPAN class=""&gt;props&lt;/SPAN&gt;.&lt;SPAN class=""&gt;dispatch&lt;/SPAN&gt;({ &lt;SPAN class=""&gt;type&lt;/SPAN&gt;: &lt;SPAN class=""&gt;'WIDGET_COMMUNICATION'&lt;/SPAN&gt;, &lt;SPAN class=""&gt;payload&lt;/SPAN&gt;: message });&lt;/DIV&gt;&lt;/DIV&gt;&lt;H4&gt;Listening for the Message in mySideBar2&lt;/H4&gt;&lt;P&gt;In your sidebar widget, listen for messages and react accordingly:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;js&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;componentDidMount&lt;/SPAN&gt;() { &lt;SPAN class=""&gt;window&lt;/SPAN&gt;.&lt;SPAN class=""&gt;appStore&lt;/SPAN&gt;.&lt;SPAN class=""&gt;subscribe&lt;/SPAN&gt;(&lt;SPAN class=""&gt;() =&amp;gt;&lt;/SPAN&gt; { &lt;SPAN class=""&gt;const&lt;/SPAN&gt; state = &lt;SPAN class=""&gt;window&lt;/SPAN&gt;.&lt;SPAN class=""&gt;appStore&lt;/SPAN&gt;.&lt;SPAN class=""&gt;getState&lt;/SPAN&gt;(); &lt;SPAN class=""&gt;// Check for messages related to your widget and react&lt;/SPAN&gt; }); }&lt;/DIV&gt;&lt;/DIV&gt;&lt;H3&gt;4. Test Your Implementation&lt;/H3&gt;&lt;P&gt;After implementing the changes, test the sidebar and map widget interaction thoroughly. Ensure that the sidebar responds correctly to commands from the map widget to collapse or expand.&lt;/P&gt;&lt;H3&gt;5. Update Widget Manifest&lt;/H3&gt;&lt;P&gt;Finally, don't forget to update the manifest (manifest.json) of your mySideBar2 widget, if necessary, to reflect any new dependencies or capabilities introduced by your modifications.&lt;/P&gt;&lt;P&gt;This is a high-level overview, and the exact implementation details will depend on your specific requirements and the current codebase of the widgets you are working with. Familiarity with React (if using .tsx), the Experience Builder framework, and JavaScript will be essential throughout this process.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 03 Mar 2024 23:28:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-launch-a-custom-widget-on-mouse-click/m-p/1390089#M11242</guid>
      <dc:creator>FredericPoliart_EsriAU</dc:creator>
      <dc:date>2024-03-03T23:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to launch a custom widget on mouse click</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-launch-a-custom-widget-on-mouse-click/m-p/1391283#M11353</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/435620" target="_self"&gt;&lt;SPAN class=""&gt;FredericPoliart_EsriAU&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, but there is too much into if for me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;. I will try to understand this and will see.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 17:13:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-launch-a-custom-widget-on-mouse-click/m-p/1391283#M11353</guid>
      <dc:creator>sidd</dc:creator>
      <dc:date>2024-03-05T17:13:18Z</dc:date>
    </item>
  </channel>
</rss>

