External filters
The application can supply its own predicate, driven by UI outside the grid such as dashboard toggles. The predicate is combined with the column filters and quick search. The grid is told to re-run it whenever the external state changes.
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 accounts grid with radio buttons above it labelled All / Mine / Team. A column filter is also active.
Expected behavior
Choosing Mine filters the rows after onExternalFilterChanged is called. The 'forget' toggle demonstrates that the rows stay stale until refreshFilters is called. The external filter is combined with the column filter using AND.
Planned API surface
isExternalFilterPresentdoesExternalFilterPass(row)onExternalFilterChanged()refreshFilters()Acceptance criteria
- doesExternalFilterPass is only called when isExternalFilterPresent returns true. (pending)
- Calling onExternalFilterChanged re-evaluates all rows exactly once. (pending)
- The external filter result is combined with the column filters and quick search using AND. (pending)
- An exception thrown by doesExternalFilterPass is caught; the row is excluded and onFilterError is fired. (pending)