项目作者: SouhailBS

项目描述 :
Ionic-AngularJS Swipeable tabs support
高级语言: JavaScript
项目地址: git://github.com/SouhailBS/Ionic-AngularJS-Swipable-tabs.git
创建时间: 2018-03-25T09:38:52Z
项目社区:https://github.com/SouhailBS/Ionic-AngularJS-Swipable-tabs

开源协议:MIT License

下载


Ionic-AngularJS-Swipable-tabs

A free, easy installation Ionic/AngularJS directive to support swipable tabs.

Screenshot

alt text

Features

  • Smooth Swipe
  • Animated navigation
  • Fully Open Sourced

Installation

  1. bower install ionic-angularjs-swipable-tabs --save

Add a <script> to your index.html:

  1. <script src="lib/ionic-angularjs-swipable-tabs/tabs-swipable.min.js"></script>

Add a <link> to your index.html:

  1. <link href="lib/ionic-angularjs-swipable-tabs/tabs-swipable.min.css" type="text/css" rel="stylesheet"/>

Add a tabs-swipable directive to your tabs:

  1. <ion-tabs class="tabs-icon-top tabs-color-active-positive" tabs-swipable>
  2. ...
  3. </ion-tabs>

Swipe Options

  • Swipe loop
    Add a tabs-swipable-loop attribute to your tabs with “true” or “false” as value (dafault is false):

<ion-tabs class="tabs-icon-top tabs-color-active-positive" tabs-swipable-loop="true|false"> ... </ion-tabs>

Limitation

  • Next tab preview is shown only if the next view was cached.
  • No animation when moving between tabs by clicking on the tab button.

License

MIT