Set filter with distinct-value checkboxes
A set filter lists every distinct value in a column as a checkbox, with Select All and per-value row counts. It is the fastest way to filter categorical data and makes rare values easy to spot.
Planned. This page shows the specification from issue #187. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
An orders grid in which the Status column has 6 distinct values. All are selected.
Expected behavior
Unchecking a value hides its rows. Select All toggles every value and shows an indeterminate state when only some are selected. Counts reflect the full data set. The model records the smaller of the include or exclude lists.
Planned API surface
columnDefs[].filterType='set'filterParams.valuesfilterParams.showCountsfilterParams.valueFormatterfilterParams.sortValuesfilterModel.selected[]filterModel.mode ('include' | 'exclude')Acceptance criteria
- Distinct values are derived from the column's raw values and deduplicated by strict equality after valueGetter. (pending)
- Select All has three states: checked, unchecked and mixed. (pending)
- When every value is selected, the filter is inactive. (pending)
- Deselecting every value displays zero rows. (pending)
- When explicit filterParams.values are supplied, those are listed even if they do not appear in the data. (pending)