Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with Ionic

You're reading from   Getting Started with Ionic Get up and running with developing effective Hybrid Mobile Apps with Ionic

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher
ISBN-13 9781784390570
Length 168 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Rahat Khanna Rahat Khanna
Author Profile Icon Rahat Khanna
Rahat Khanna
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. All About Hybrid Mobile Apps and Ionic Framework FREE CHAPTER 2. Setting up the Environment the Right Way 3. Start Building Your First Ionic App 4. Navigation and Routing in an Ionic App 5. Accessorizing Your App with Ionic Components 6. Integrating App with Backend Services 7. Testing App on Real Devices 8. Working with Cordova Plugins – ngCordova 9. Future of Ionic Index

Ionic Tabs


Ionic Tabs is a collection of important directives for creating a tab-based layout for a section of your mobile app. We have already seen how the tabs directive is used in the tabs starter template.

Ionic Tabs is a collection of two directives and one service. The directives are <ion-tabs> used to define the collection or group of tabs, and the <ion-tab>, directive, which is used to define a specific tab. The service $ionicTabsDelegate is used to control the tabs from JavaScript in order to select a specific tab.

The <ion-tabs> directive

It provides a multi-tabbed interface with a set of tabs and multiple views that can be switched. The tabs CSS classes are used to set the styling of the tabs group. The class name tabs should be used along with the following classes for specific styles:

CSS class

Description

tabs-<theme_name>

Defines the color of the tabs, for example, tabs-positive, tabs-calm, and so on.

tabs-icon-only

It will show tabs with icons...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime