An extension of Ionic Tabbed Slidebox
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.
Sorry, I don't have it. Though I'm sure I'll do a pull request.
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!