Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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!

About

An extension of Ionic Tabbed Slidebox

Resources

License

Releases

No releases published

Packages

No packages published