Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70435

Slides [pager]="!showPagination" only works once... (hide id)

$
0
0

@Chipgriller wrote:

I like to hide the pagination of the slides in some circumstances.
I can let them disappear but not vise versa.
Is that a Bug in ionic 4. Or do I miss something.

Thank you.

<ion-slides [pager]="!showCalc">
  <ion-slide>
    <ion-grid>
      
      <ion-row>
        <ion-col>
            Page 1
        </ion-col>
      </ion-row>
        <ion-row>
            <ion-col>
                <ion-button (click)="switchStatus()">
                    <ion-icon name="sync"></ion-icon>
                    <ion-label>Switch</ion-label>
                  </ion-button>
            </ion-col>
      </ion-row>
    </ion-grid>

  </ion-slide>
  <ion-slide>Page 2</ion-slide>
</ion-slides>


switchStatus(){
    this.showCalc = !this.showCalc;
  }

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



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