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

Ion segment scrolls both active and In-active when scroll active section?

$
0
0

@jakesully wrote:

I have two segment tabs for example A and B,
i set default value as A. So A tab will Active and B is in-active. each tab content have different list of contents. If a scroll A tab’s Content it also scroll B tab’s Content. I need separate scrolls for those sections.
This is my code:

 <ion-segment [(ngModel)]="type" mode="md">
      <ion-segment-button value="A">
        <ion-label>A</ion-label>
      </ion-segment-button>
      <ion-segment-button value="B">
        <ion-label>B</ion-label>
      </ion-segment-button>
    </ion-segment>
<ion-content [ngSwitch]="type" scroll-y='true'>
<section *ngSwitchCase="A">
<!-- Content Here -->
</section>
<section *ngSwitchCase="B">
<!-- Content Here -->
</section>
</ion-content>

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>