Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide ion-slides pager?

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?

like image 849
tivoni Avatar asked Feb 15 '16 14:02

tivoni


People also ask

How do you use ion slides?

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.

How do I create an ionic image slider?

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.


4 Answers

official solution:

options="{pagination: false}"
like image 126
Steph8 Avatar answered Oct 03 '22 20:10

Steph8


Just add this in your css:

.swiper-pagination-bullet{
   background:white!important;
   border-radius: 100%;
   height: 17px;   
   width: 17px;
   display: none;
}

Hope this helps

like image 29
kushal Avatar answered Oct 03 '22 20:10

kushal


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"> ...
like image 43
SandroMarques Avatar answered Oct 04 '22 20:10

SandroMarques


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; }
like image 30
Chewpers Avatar answered Oct 03 '22 20:10

Chewpers