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

How to define a sticky ion-segment

$
0
0

@Harshana123 wrote:

I am having a ion-content which contains three sections according to the following structure. I am using ionic 4.

<ion-header>
    ...... content header ......
<ion-header>

<ion-content>
    <ion-card>
        ...... content A ......
    </ion-card>
    <ion-segment>
        ...... content B ......
    </ion-segment >
    <ion-grid>
        ...... content C ......
    </ion-grid>
</ion-content>

The content can scroll and what I want to do is when I am scrolling the content and when ion-segment comes in the top I want to stick it with header. That means I want to keep scroll the ion-grid and keep ion-segment at the top.

Is there a standard way to do this? Highly appreciate anyone helping me on this.

Thank you.

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70440

Trending Articles



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