<?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: Reset segmented-control map component in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reset-segmented-control-map-component/m-p/1624783#M87264</link>
    <description>&lt;P&gt;The calcite doc for Segmented Control notes that it has functionality similar to a Radio Button. If you take a look at the &lt;A href="https://developers.arcgis.com/calcite-design-system/components/radio-button/" target="_self"&gt;Radio Button&lt;/A&gt; doc it notes that &lt;EM&gt;for interactions where a choice is optional consider a Checkbox. The key difference between a checkbox and radio button is that radios must always have something active.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So perhaps look at using checkboxes for your scenario?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jun 2025 19:26:12 GMT</pubDate>
    <dc:creator>KellyHutchins</dc:creator>
    <dc:date>2025-06-18T19:26:12Z</dc:date>
    <item>
      <title>Reset segmented-control map component</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reset-segmented-control-map-component/m-p/1624751#M87263</link>
      <description>&lt;P&gt;How are segmented control components reset? Setting the value = null or '' effectively clears the selection, but whatever value was previously set is not 'selectable' again until an alternate value is selected.&lt;/P&gt;&lt;P&gt;Here's a pen reproducing the issue -&amp;nbsp;&lt;A href="https://codepen.io/derekwmiller/pen/bNdxKEm" target="_blank" rel="nofollow noopener noreferrer"&gt;https://codepen.io/derekwmiller/pen/bNdxKEm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Select a value -&amp;gt; click the reset icon / button -&amp;gt; try to select the same value -&amp;gt; cannot select it&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 17:15:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reset-segmented-control-map-component/m-p/1624751#M87263</guid>
      <dc:creator>MillerDerek</dc:creator>
      <dc:date>2025-06-18T17:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reset segmented-control map component</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reset-segmented-control-map-component/m-p/1624783#M87264</link>
      <description>&lt;P&gt;The calcite doc for Segmented Control notes that it has functionality similar to a Radio Button. If you take a look at the &lt;A href="https://developers.arcgis.com/calcite-design-system/components/radio-button/" target="_self"&gt;Radio Button&lt;/A&gt; doc it notes that &lt;EM&gt;for interactions where a choice is optional consider a Checkbox. The key difference between a checkbox and radio button is that radios must always have something active.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So perhaps look at using checkboxes for your scenario?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 19:26:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reset-segmented-control-map-component/m-p/1624783#M87264</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2025-06-18T19:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reset segmented-control map component</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reset-segmented-control-map-component/m-p/1624854#M87265</link>
      <description>&lt;P&gt;Thanks for the info&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/491"&gt;@KellyHutchins&lt;/a&gt;.&amp;nbsp;That makes sense. Checkboxes are less than ideal in this scenario -- image below.&lt;/P&gt;&lt;P&gt;I put together a work-around with a disabled &amp;amp; hidden calcite-segmented-control-item. The value of the segmented control is set to the hidden item on reset.&lt;/P&gt;&lt;P&gt;Updated pen -&amp;nbsp;&lt;A href="https://codepen.io/derekwmiller/pen/bNdxKEm" target="_blank"&gt;https://codepen.io/derekwmiller/pen/bNdxKEm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="date-filters-screenshot.png" style="width: 273px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134598iBC5D98256996B947/image-size/large?v=v2&amp;amp;px=999" role="button" title="date-filters-screenshot.png" alt="date-filters-screenshot.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 21:49:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reset-segmented-control-map-component/m-p/1624854#M87265</guid>
      <dc:creator>MillerDerek</dc:creator>
      <dc:date>2025-06-18T21:49:14Z</dc:date>
    </item>
  </channel>
</rss>

