<?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: Alternative Filter Widget in Experience Builder Custom Widgets</title>
    <link>https://community.esri.com/t5/experience-builder-custom-widgets/alternative-filter-widget/m-p/1628345#M595</link>
    <description>&lt;P&gt;I have the same issue with my customize widget, i set up correctly the manifest.json but look at the result :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JasonBOCQUET_0-1751293247498.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/135369iD7BDE38C7A59D145/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JasonBOCQUET_0-1751293247498.png" alt="JasonBOCQUET_0-1751293247498.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And i never find how to fix that ^^'&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jun 2025 14:21:06 GMT</pubDate>
    <dc:creator>JasonBOCQUET</dc:creator>
    <dc:date>2025-06-30T14:21:06Z</dc:date>
    <item>
      <title>Alternative Filter Widget</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/alternative-filter-widget/m-p/1625824#M586</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;For my first 'Custom' widget, I have modified the out-of-the-box filter widget by exposing a few properties that aren't present in the filter style pane, and tailored the display of the filter to focus on using an icon as the primary way a viewer interprets the filter query.&lt;/P&gt;&lt;P&gt;The reason I wanted to create this was because I had a situation where I wanted to set quite a few filters without the scrolling list growing too long, but also not feeling quite so jam-packed that a pill button selection mode can sometimes seem. I took inspiration from a ESRI-developed application for Get Ireland Active that did this and I thought was a really good way to address those issues. The general interface can be seen below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_0-1750696797837.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134841i8B7C7404EBC7A723/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_0-1750696797837.png" alt="ZachBodenner_0-1750696797837.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Usage:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After downloading and extracting the widget to your deployment's client/your-extensions/widgets folder, add the widget to the map. Here I have exposed three color properties to extend the styling of the filter pills. Hover Overlay will change the color of the pill when hovered over, Selected Pill Border will override the Jimu styling that determines the border color and corner-thing color once a pill is selected, and Pill Button Fill allows you to select the base fill color of the pill.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next, since this widget focuses on an icon, you'll to choose one for your filter item.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_2-1750697192311.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134843i8652C63998EDCBFE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_2-1750697192311.png" alt="ZachBodenner_2-1750697192311.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_3-1750697207766.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134844i33A82330129B28BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_3-1750697207766.png" alt="ZachBodenner_3-1750697207766.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The widget strong-arms a square icon into the rectangular pill, giving more space on the sides than on top. This is probably adjustable by more adept coders than myself, but this achieved the effect I was looking for, so I decided to keep it this way. For the app I built this for, I needed an icon set for around forty filters and I wanted to keep the sizes consistent.&lt;/P&gt;&lt;P&gt;The important thing about this widget is that the exposed properties will only work in horizontal arrangement style and with a button activation style. The filter still works fine regardless of the setting, but the styling will not.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_1-1750697065018.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134842iEF91E2F98E7426E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_1-1750697065018.png" alt="ZachBodenner_1-1750697065018.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And that's kind of it! It's not super extensive but it was a fun exercise to learn a bit about how these things work. I certainly took away a few tidbits, even though I still don't think I could make a custom built widget actually&amp;nbsp;&lt;EM&gt;do&lt;/EM&gt; anything new. Maybe that'll be my next project!&lt;/P&gt;&lt;P&gt;I called it the Custom Pill Filter since that seemed pretty descriptive - maybe I'll rename it something catchier later.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Future Changes?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;There are a few things I haven't been able to achieve that hope to figure out in the future:&lt;/P&gt;&lt;P&gt;1. The default colors for the newly exposed properties are white (for the pill fill) and leveraging theme colors for the hover and outline. However, when adding a new instance of these filters to the map, the defaults are reflecting some default theme. even if I select a theme from the options, it does not get reflected in the default colors in the filter. I'd be interested to know if anyone has any insights on how to rectify that.&lt;/P&gt;&lt;P&gt;2. Probably a very easy fix, but I can't figure out how to change this title:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_4-1750697697040.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134847i929A0DCBF46CF7A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_4-1750697697040.png" alt="ZachBodenner_4-1750697697040.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3. Finally, when first setting up a filter item, the default filter icon does not appear:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_5-1750697789100.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134849iA09D011F270E08CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_5-1750697789100.png" alt="ZachBodenner_5-1750697789100.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I suspect something I did changed this, but I really don't know what.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Parting Notes:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The application I'm working on that will feature this widget is not deployed yet, but I will update this post when it is so that it could serve as a demo application for this interested.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Changes/Updates:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;8/11/2025 - Breaking changes at 1.18 required small tweaks to handling the popper.&amp;nbsp;&lt;SPAN&gt;&lt;SPAN&gt;popperModifiers has been replaced with&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;FallbackFlipOptions, which required changes to /runtime/utils, /runtime/filter-item.tsx/ and /runtime/widget.tsx. Additionally, something changed with the handling of the icon that I had set up in filter-item.tsx, so I reverted to the out of the box filter config on that line, and added aria-hidden:true and the size properties I had set previously. I attached an updated widget here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 15:12:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/alternative-filter-widget/m-p/1625824#M586</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2025-08-12T15:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative Filter Widget</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/alternative-filter-widget/m-p/1625975#M587</link>
      <description>&lt;P&gt;The name in the Insert Data Panel is controlled by the label property in the manifest.json.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 19:46:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/alternative-filter-widget/m-p/1625975#M587</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2025-06-23T19:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative Filter Widget</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/alternative-filter-widget/m-p/1625982#M588</link>
      <description>&lt;P&gt;Mm, that's interesting (and also what I expected to happen) because I did definitely adjust that label, and it doesn't seem to be reflected:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZachBodenner_0-1750708902119.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134901i722EEB1A8C757E10/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZachBodenner_0-1750708902119.png" alt="ZachBodenner_0-1750708902119.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 20:01:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/alternative-filter-widget/m-p/1625982#M588</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2025-06-23T20:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative Filter Widget</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/alternative-filter-widget/m-p/1625985#M589</link>
      <description>&lt;P&gt;The name and label properties do not update, at least not reliably, after Webpack compiles a widget for the first time.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 20:32:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/alternative-filter-widget/m-p/1625985#M589</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2025-06-23T20:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative Filter Widget</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/alternative-filter-widget/m-p/1625986#M590</link>
      <description>&lt;P&gt;Well that's certainly inconvenient but at least I'm not going crazy and I understood the setup correctly.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 20:34:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/alternative-filter-widget/m-p/1625986#M590</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2025-06-23T20:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative Filter Widget</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/alternative-filter-widget/m-p/1628345#M595</link>
      <description>&lt;P&gt;I have the same issue with my customize widget, i set up correctly the manifest.json but look at the result :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JasonBOCQUET_0-1751293247498.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/135369iD7BDE38C7A59D145/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JasonBOCQUET_0-1751293247498.png" alt="JasonBOCQUET_0-1751293247498.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And i never find how to fix that ^^'&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 14:21:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/alternative-filter-widget/m-p/1628345#M595</guid>
      <dc:creator>JasonBOCQUET</dc:creator>
      <dc:date>2025-06-30T14:21:06Z</dc:date>
    </item>
  </channel>
</rss>

