I use the ion-slide
directive documented here and I cannot find a method to hide the pager. I tried setting the pager attribute as in:
<ion-slides options="myOptions" pager="false" slider="mySlide[item.id]">
however that does not work, the pager bullets are still showing.
Is it possible to hide the ion-slides pager, and if so - how?
The Slides components contain pages that can be changed by swiping or dragging the content screen. It is a multi-section container. It can include any number of Slide components. It is very useful in creating galleries, tutorials, and page-based layouts.
You could use ion-slide-box , then you need to set slide-interval to 30000 to change image in 30 seconds, its default to 4 seconds. Show activity on this post.
official solution:
options="{pagination: false}"
Just add this in your css
:
.swiper-pagination-bullet{
background:white!important;
border-radius: 100%;
height: 17px;
width: 17px;
display: none;
}
Hope this helps
Just remove pager
.
Example:
<ion-slides pager loop autoplay="1500" class="auto_height"> ...
just put (without "pager"):
<ion-slides loop autoplay="1500" class="auto_height"> ...
If these slides are being added to an ion-slide-box, you can:
show-pager="false"
on the ion-slide-box
. See the docs for more info.
You might also be able to hide them via css like:
.slider-pager { display:none; }
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