Giter VIP home page Giter VIP logo

ionic-angularjs-swipable-tabs's Introduction

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

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

Add a <script> to your index.html:

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

Add a <link> to your index.html:

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

Add a tabs-swipable directive to your tabs:

<ion-tabs class="tabs-icon-top tabs-color-active-positive" tabs-swipable>
  ...
</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

ionic-angularjs-swipable-tabs's People

Contributors

souhailbs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ionic-angularjs-swipable-tabs's Issues

Wrap swipe?

Thanks a lot for this, it works great on first try on Android device.

Just wondering if it could be handy to allow "wrap swipe"?

E.g. if one have 3 tabs "One", "Two", Three". And when in tab "Three" swipe left, tab "One" could show up. And correspondingly, when swiping right when in tab "One", go to tab "Three".

Cheers
-jo

Configurable swipe "aggressiveness"?

Hi!

I have Ionic list items with option buttons in app using this directive.

E.g. like in this CodePen:
https://codepen.io/flavordaaave/pen/emZdwN

When sliding an item left, two option buttons appear.

When doing this in my app with this directive, the tab page switch seems to start almost immediately, making it difficult to show the option buttons without switching tab page.

Could it be possible to configure kind of "aggressiveness level" of tab swipe? Or maybe the area, e.g. tab swiping works only on left / right edges of screen?

Cheers
-jo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.