I'd like to remove the clear filter button that is present in filterable columns by default and instead add a "Clear Filter" option to the filter operators. I'd like to make the clear filter functionality work as it did in a much older version of the library (and on a different platform).
Legacy "NoFilter" Option:
Current State (clear filter button):
I'd like to essentially "move" the clear filter button in the filter row into the filter options menu (in order to save the ~30px of horizontal space per column). In other words, for the sample column above, the options in the filter flyout menu would be:
- Clear Filter
- Contains
- Does not contain
- ...etc.
And clicking on Clear Filter would clear the filter and collapse the flyout.
I'd prefer not to build an entire custom filter menu to accomplish this. However, looking at the custom filter operator example (here), it isn't clear if injecting a custom Clear Filter operator would be the "correct" way to implement this.