Giter Site home page Giter Site logo

ionic-super-tabs's Introduction

Swipeable tabs for Ionic

npm npm npm

Master branch is currently unstable. The module is being rewritten in Stencil JS to provide support for latest Ionic Framework version, and reap the benefits of web components in the process.

Checkout the v5 branch for the current stable version.

Checkout the example project to see the new version in action.


Installation

# Vanilla JS / React / Vue
npm i -S @ionic-super-tabs/core

# Angular
npm i -S @ionic-super-tabs/angular

Temporary installation requirement:

Add node_modules/@ionic-super-tabs/core/dist/types/interface.d.ts to your tsconfig.json file under the "include" property.


FAQ

What to expect in the next stable release?

  • Ionic 4+ support
  • Framework agnostic with Angular wrappers
  • Styling with CSS variables
  • Dynamic data support (e.g: *ngFor="let tab of tabs")
  • Custom content support. A super-tab is no longer a wrapper for ion-nav!
  • Improved performance

When will the next version be ready?

You can start using the new super tabs version, but it is currently still in beta. A stable release is expected to be released by April 12, 2019. Until then, any beta/rc versions might have breaking changes that will not be documented in any change log.

What will the new syntax look like?

<!-- 
  # Only global inputs/outputs will be passed through the super-tabs component
  # The rest of the i/o is split throughout the components to make usage more 
  # intuitive and customizable.
 -->
<super-tabs [config]="config" (tabChange)="onTabChange($event)">
  <super-tabs-container>
    <super-tab>
      <!-- You can pass anything to a super tab including an ion-nav -->
      <!-- If you choose to pass an ion-nav, it will be controlled and optimized by super-tab -->
      <ion-nav [root]="myPage" [rootParams]="myParams"></ion-nav>
    </super-tab>
    <super-tab>...</super-tab>
    <super-tab>...</super-tab>
    <!-- ability to dynamically add or remove tabs -->
    <super-tab *ngFor="let tab of tabs">...</super-tab>
  </super-tabs-container>
  
  <super-tabs-toolbar>
    <!-- Listen to click events on any tab button -->
    <super-tab-button (click)="onTabClick($event)">
      <ion-label>Call</ion-label>
      <ion-icon name="call"></ion-icon>
    </super-tab-button>
    <super-tab-button>...</super-tab-button>
    <super-tab-button>...</super-tab-button>
    <super-tab-button *ngFor="let tab of tabs">...</super-tab-button>
  </super-tabs-toolbar>
</super-tabs>

ionic-super-tabs's People

Contributors

assaf13 avatar chrizc avatar danielsogl avatar doug-a-brunner avatar eduardoroth avatar edzillion avatar giscafer avatar ihadeed avatar leoruhland avatar lincolnthree avatar maistho avatar stinaa avatar stionic avatar unkn0wn0x avatar

Watchers

 avatar  avatar

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.