Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70442

Browser find (Ctrl-F) function with next/prev occurrence functionality

$
0
0

@jusliong wrote:

Hi, I am looking for ways to create a search bar which has function like browser’s find, but my target platform is Android platform.

(For this I am not using any ionic UI components)
For which I have successfully created a search bar with a text input using

<input type="text" placeholder="Search">

and the matched letters are highlighted by assigning a background-color style to the matched cases with DOM Sanitizer:

image

However, I would like to add a Next/Prev function that would allow jumping to the location of next occurrence of such pattern.
Just like what is offered in Chrome with Ctrl + F

So far the answers I have found are all using jQuery, so I am curious if there is any Angular-Ionic solution to this.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70442

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>