How to implement ion scroll in such a way that when we click on right arrow button it should move to the next element in the div in ion content in ionic 3. I don't want any scollbar in th UI. It should be hidden.
I already referred this link. How can I use content.scrollTo() for ion-scroll in ionic2?
This is not helping me bcoz when I run scrollElement is not getting recognized in ionic3. It has been deprecated.
Please add a StackBlitz link for the answer.
My code structure looks like
<ion-content>
<ion-row>
<ion-col>
<button ion-button>Left</button>
</ion-col>
<ion-scroll scrollX="true">
<div ngFor="let item of itemlist>
<button>{{item}}</button>
<div>
</ion-scroll>
</ion-col>
<ion-col>
<button ion-button>Right</button>
</ion-col>
</ion-row>
</ion-content>
First, plase examine this document.
For example:
We created a example data with for loop. After we have 2 buttons. Plase check to my code a new ionic project. You can shape it the way you want after reading the source you share.