Search match highlighting
Highlights the matched substrings of the quick search or a text filter inside the visible cells, with an optional 'next/previous match' navigator. Highlighting explains why each row matched.
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 documents grid with long text cells. Highlighting is enabled and the search box contains 'contract'.
Expected behavior
Matches are wrapped in a highlight style. Next and Previous scroll to and focus each match in turn. Text that is matched case-insensitively still shows its original casing.
Planned API surface
quickSearchParams.highlightcolumnDefs[].filterParams.highlighthighlightClassNamegoToNextMatch()goToPreviousMatch()getMatchCount()Acceptance criteria
- Every occurrence of every token in visible searchable cells is highlighted. (pending)
- Highlighting never changes the cell's text content or its copy/paste output. (pending)
- goToNextMatch scrolls the target cell into view and wraps from the last match to the first. (pending)
- getMatchCount returns the total across all filtered rows, not only the rendered ones. (pending)
- Custom renderers receive the match ranges and can opt in to highlighting. (pending)