<?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 How hide/show a widgets by code in tsx file? in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-hide-show-a-widgets-by-code-in-tsx-file/m-p/1364348#M10014</link>
    <description>&lt;P&gt;I am developing a closable widget in experience builder:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HansFelix_0-1703620579367.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/89967i210639978763BFB8/image-size/large?v=v2&amp;amp;px=999" role="button" title="HansFelix_0-1703620579367.png" alt="HansFelix_0-1703620579367.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like to know what is the right way to hide/show a widget in experience builder,&lt;BR /&gt;I currently hide the render inside &lt;STRONG&gt;widget.tsx&lt;/STRONG&gt;&amp;nbsp;file in React but the widget container (.is-widget) still displays:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HansFelix_1-1703620897462.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/89968i2BAF4D657E429E26/image-size/large?v=v2&amp;amp;px=999" role="button" title="HansFelix_1-1703620897462.png" alt="HansFelix_1-1703620897462.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This makes it impossible to move the basemap in that section where the widget is.&lt;/P&gt;&lt;P&gt;Currently what I do is look for this container and change &lt;STRONG&gt;CSS pointer-events property&lt;/STRONG&gt; (&lt;A href="https://community.esri.com/t5/arcgis-experience-builder-questions/can-i-create-a-widget-that-doesn-t-register-a/td-p/1352001" target="_self"&gt;post from I found this idea&lt;/A&gt;&amp;nbsp;) to none, but its hacky.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Any idea how I can hide/show a widget correctly?&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Tue, 26 Dec 2023 20:10:39 GMT</pubDate>
    <dc:creator>HansFelix</dc:creator>
    <dc:date>2023-12-26T20:10:39Z</dc:date>
    <item>
      <title>How hide/show a widgets by code in tsx file?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-hide-show-a-widgets-by-code-in-tsx-file/m-p/1364348#M10014</link>
      <description>&lt;P&gt;I am developing a closable widget in experience builder:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HansFelix_0-1703620579367.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/89967i210639978763BFB8/image-size/large?v=v2&amp;amp;px=999" role="button" title="HansFelix_0-1703620579367.png" alt="HansFelix_0-1703620579367.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like to know what is the right way to hide/show a widget in experience builder,&lt;BR /&gt;I currently hide the render inside &lt;STRONG&gt;widget.tsx&lt;/STRONG&gt;&amp;nbsp;file in React but the widget container (.is-widget) still displays:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HansFelix_1-1703620897462.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/89968i2BAF4D657E429E26/image-size/large?v=v2&amp;amp;px=999" role="button" title="HansFelix_1-1703620897462.png" alt="HansFelix_1-1703620897462.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This makes it impossible to move the basemap in that section where the widget is.&lt;/P&gt;&lt;P&gt;Currently what I do is look for this container and change &lt;STRONG&gt;CSS pointer-events property&lt;/STRONG&gt; (&lt;A href="https://community.esri.com/t5/arcgis-experience-builder-questions/can-i-create-a-widget-that-doesn-t-register-a/td-p/1352001" target="_self"&gt;post from I found this idea&lt;/A&gt;&amp;nbsp;) to none, but its hacky.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Any idea how I can hide/show a widget correctly?&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Dec 2023 20:10:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-hide-show-a-widgets-by-code-in-tsx-file/m-p/1364348#M10014</guid>
      <dc:creator>HansFelix</dc:creator>
      <dc:date>2023-12-26T20:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: How hide/show a widgets by code in tsx file?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-hide-show-a-widgets-by-code-in-tsx-file/m-p/1365310#M10046</link>
      <description>&lt;P&gt;The best solution here would be to place your widget in a Widget Controller (or a Sidebar). You could configure the Widget Controller to launch your widget on load and to load at a fixed location. And the Widget Controller would also handle the logic to dismiss the widget.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 14:21:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-hide-show-a-widgets-by-code-in-tsx-file/m-p/1365310#M10046</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-01-02T14:21:26Z</dc:date>
    </item>
  </channel>
</rss>

