An extension of Ionic Tabbed Slidebox
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
tabSlideBoxScrollExtension.js

README.md

Ionic Tabbed Slidebox Scroll Extension

An extension of Ionic Tabbed Slidebox

What is this?

Ionic Tabbed Slidebox is a great component. The Demo has "Scrollable content" example. It works well though it doesn't show the bottom of content inside of tabs. This extension solves that problem.

This is simply just adding margin-bottom to ion-content. Get the height, including margin of .tsb-icons, and set that height(px) to the margin-bottom after rendering.

Demo?

Sorry, I don't have it. Though I'm sure I'll do a pull request.

Usage

Load the js file in your index.html

<script src="lib/tabbedSlideBox/tabSlideBox.js"></script>
<script src="js/tabSlideBoxScrollExtension.js"></script>
<script src="js/app.js"></script>

Load the module

angular.module("starter", ["ionic", "tabSlideBox", "tabSlideBoxScrollExtension"])

HTML structure example

    <ion-slide>
      <ion-nav-view name="tab-something-list">
        <ion-view view-title="something-list">
          <ion-content>
            <ion-list ng-controller="ListCtrl as listctrl">
              <ion-item class="item-remove-animate" ng-repeat="row in listctrl.rows" type="item-text-wrap">
                <img ng-src="{{row.img}}">
                <p>{{row.firstname}}</p>
                <p>{{row.lastname}}</p>
              </ion-item>
            </ion-list>
          </ion-content>
        </ion-view>
      </ion-nav-view>
    </ion-slide>

Easy!