Highlight search results

If I am creating a table based on the results of a query to an API, is there a way in the output to highlight all the occurrences of the search string?

Something like this?


you can use the following as the mapper for the column to achieve this:
{{ self.replace(new RegExp(textinput1.value,"ig"), "<span style='background-color:yellow;'>" + textinput1.value + "</span>") }}
Just replace textinput1 with the name of your search field.

2 Likes