Search and replace get the list of matched texts

How to get the list of matched sentences after text search?


I'm trying to re-implement the one below and create my custom UI for search and replace:
My question is, how do I get the list of texts matched like the one below:



What I've done so far:
I was able to do a simple search
 

But, I would like to get the list of sentences with match keyword being searched

But on your documentation, I'm only exposed with few methods I could use.
And one of them is this:


And the result for that is this:


How am I going to use this to get the list of texts that I want?

Or is there a better way of re-implementing the search result list?


3 Replies

AE Ajithamarlin Edward Syncfusion Team May 19, 2022 04:48 AM UTC

HI Deejay,


We will check and share you a sample to get all the search results shortly.


Regards,

Ajithamarlin E



DE Deejay replied to Ajithamarlin Edward May 19, 2022 06:11 AM UTC

That would be very awesome. Thanks!



AE Ajithamarlin Edward Syncfusion Team May 23, 2022 04:41 PM UTC

HI Deejay,


Please find the requested sample below.


https://stackblitz.com/edit/ifkmmo?file=index.ts



Regards,

Ajithamarlin E



Loader.
Up arrow icon