Skip to content

wataruoguchi/Ionic-Tabbed-Slidebox-Scroll-Extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published