Enable column filtering with a filter row
Introduces the opt-in filter row that renders one filter input under each filterable column header. Filtering is off by default and is enabled for the grid or for individual columns. Every later filtering feature builds on this foundation.
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
A grid with 200 synthetic ticket rows (id, subject, priority, owner, created). Filtering is enabled and the filter row is visible. The 'id' column is not filterable.
Expected behavior
Typing into a column's filter cell narrows the rows to those whose cell value contains the text. Turning off enableFiltering hides the filter row and restores all rows. Non-filterable columns show an empty, inert filter cell.
Planned API surface
enableFilteringcolumnDefs[].filterableshowFilterRowonFilterChangedgetDisplayedRowCountAcceptance criteria
- With enableFiltering=false, no filter row is rendered and all rows are displayed. (pending)
- With enableFiltering=true and showFilterRow=true, each filterable column renders exactly one filter input in the filter row. (pending)
- A column with filterable=false renders no input and is ignored by filtering. (pending)
- Entering text in a filter input updates the displayed rows and fires onFilterChanged once per committed change. (pending)
- Clearing a filter input restores the rows that the filter had excluded. (pending)
- The row count readout equals getDisplayedRowCount() after every change. (pending)