Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230080

How to programmatically scroll an ion-list

$
0
0

You should be able to get the ion-item you want to scroll to and use the standard scrollIntoView() method on the element.

We use this on a standard li. On component load, we set a class on the li we want to scroll to. Then when the user wants to scroll there, we look up the element by class name and call scrollIntoView().


Viewing all articles
Browse latest Browse all 230080

Trending Articles



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