I have a component inside of ion-slide and its is the scroll not working
here is my code :
{{tab}}
<ion-slide style="height:100%">
<main-search></main-search>
</ion-slide>
<ion-slide>
<div style="height:100%">Page 2 </div>
</ion-slide>
Please try this:
.swiper-slide {
overflow-y: scroll;
display: block;
}
https://forum.ionicframework.com/t/ionic-scroll-within-ionic-slide-not-working/47099/7
Please try following code:
.html
<ion-slides [options]="slideOpts"
pager="true">
<ion-slide>
<ion-list>
<ion-item>
<h2>Some title1</h2>
</ion-item>
<ion-item>
<h2>Some title2</h2>
</ion-item>
<ion-item>
<h2>Some title3</h2>
</ion-item>
<ion-item>
<h2>Some title4</h2>
</ion-item>
<ion-item>
<h2>Some title5</h2>
</ion-item>
<ion-item>
<h2>Some title45</h2>
</ion-item>
<ion-item>
<h2>Some title46</h2>
</ion-item>
</ion-list>
</ion-slide>
<ion-slide>
<ion-list>
<ion-item>
<h2>Some title1</h2>
</ion-item>
<ion-item>
<h2>Some title2</h2>
</ion-item>
<ion-item>
<h2>Some title3</h2>
</ion-item>
<ion-item>
<h2>Some title4</h2>
</ion-item>
<ion-item>
<h2>Some title5</h2>
</ion-item>
<ion-item>
<h2>Some title45</h2>
</ion-item>
<ion-item>
<h2>Some title46</h2>
</ion-item>
<ion-item>
<h2>Some title1</h2>
</ion-item>
<ion-item>
<h2>Some title2</h2>
</ion-item>
<ion-item>
<h2>Some title3</h2>
</ion-item>
<ion-item>
<h2>Some title4</h2>
</ion-item>
<ion-item>
<h2>Some title5</h2>
</ion-item>
<ion-item>
<h2>Some title45</h2>
</ion-item>
<ion-item>
<h2>Some title46</h2>
</ion-item>
</ion-list>
</ion-slide>
</ion-slides>
.ts
slideOpts = {
initialSlide: 0,
speed: 500
};
.scss
For vertical scrolling
ion-slides{
overflow-y: scroll;
}
For horizontal scrolling
ion-slides{
overflow-x: scroll;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With