Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Fixed content and a list view in the same ionic view

$
0
0

Here is how I would do it.

<ion-view>
  <ion-header>
    // header html
  </ion-header>
  <ion-content class="list">
    <ion-list>
      <ion-item ng-repeat="item in items">
      </ion-item>
    </ion-list>
  </ion-content
</ion-view>

Now your list class needs to set the top of your ion-content down below your header. So the css would look something like this.

.list {
  top: 100px // or whatever your header height is
}

Haven't tested this out yet, but something like this should work.


Viewing all articles
Browse latest Browse all 228595

Trending Articles



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