<?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 Can I create a widget that doesn't register a click on its' background? in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/can-i-create-a-widget-that-doesn-t-register-a/m-p/1352001#M9485</link>
    <description>&lt;P&gt;I have a custom widget that I need to be overlaid over the entire Map View widget. Let's say the widget will have a button in the corner that needs to respond to clicks. At the same time, I don't want the background of the widget (everything except that button) to register any clicks or mouse events so I can still interact with Map View.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to achieve this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basic example would look 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="Woodpeckerus_0-1700579814445.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86716iE00F27D3473CEF98/image-size/large?v=v2&amp;amp;px=999" role="button" title="Woodpeckerus_0-1700579814445.png" alt="Woodpeckerus_0-1700579814445.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Nov 2023 15:25:51 GMT</pubDate>
    <dc:creator>Woodpeckerus</dc:creator>
    <dc:date>2023-11-21T15:25:51Z</dc:date>
    <item>
      <title>Can I create a widget that doesn't register a click on its' background?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/can-i-create-a-widget-that-doesn-t-register-a/m-p/1352001#M9485</link>
      <description>&lt;P&gt;I have a custom widget that I need to be overlaid over the entire Map View widget. Let's say the widget will have a button in the corner that needs to respond to clicks. At the same time, I don't want the background of the widget (everything except that button) to register any clicks or mouse events so I can still interact with Map View.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to achieve this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basic example would look 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="Woodpeckerus_0-1700579814445.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86716iE00F27D3473CEF98/image-size/large?v=v2&amp;amp;px=999" role="button" title="Woodpeckerus_0-1700579814445.png" alt="Woodpeckerus_0-1700579814445.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 15:25:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/can-i-create-a-widget-that-doesn-t-register-a/m-p/1352001#M9485</guid>
      <dc:creator>Woodpeckerus</dc:creator>
      <dc:date>2023-11-21T15:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create a widget that doesn't register a click on its' background?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/can-i-create-a-widget-that-doesn-t-register-a/m-p/1352123#M9488</link>
      <description>&lt;P&gt;By using &lt;A href="https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events" target="_self"&gt;pointer-events&lt;/A&gt; CSS property you can control whether a HTML element is clickable. So you can set pointer-events for your button to 'auto' and to 'none' for the whole div of your widget. You may face a problem that the root div of your widget is out of your control - I was able to solve it using javascript&amp;amp;colon;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const widgetRootDiv = myDiv.closest('div .is-widget');
widgetRootDiv.style.setProperty('pointer-events', 'none', 'important');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 18:01:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/can-i-create-a-widget-that-doesn-t-register-a/m-p/1352123#M9488</guid>
      <dc:creator>MarcelŠíp</dc:creator>
      <dc:date>2023-11-21T18:01:42Z</dc:date>
    </item>
  </channel>
</rss>

