You see here how you have to separate each of the tabs. You can even insert an icon or image, but I don’t remember how right now. You can see it in the documentation right here http://ionicframework.com/docs/v2/components/#tabs
In the .ts
import { Component } from ‘@angular/core’;
import { NavController } from ‘ionic-angular’;
import { Tab1 } from '../tab1/tab1'; //import each of the pages you want to insert in the tabs
import { Tab2 } from '../tab2/tab2';
import { Tab3 } from '../tab3/tab3';
@Component({
selector: 'page-tabs',
templateUrl: 'tabs.html'
})
export class Tabs {
tab1Root = Tab1;
//initialize each page with a variable (this must be the same name we have in `.html`
tab2Root = Tab2;
tab3Root = Tab3;
constructor (public navCtrl: NavController) {}
ionViewDidLoad() {}
Now, at last, we have the .scss.
ion-tabs {
background-color: white;
overflow: hidden;
position: fixed;
left: 0;
width: 10vw;
height: 100vh;
display: table; // make sure every tab has display: table-column
}
And then play with each tab’s proportion. I think that should work.
So this scss allows me to reduce the tab size, it is an ideal fit for the blue side which can act as a fix side-menu. Now how to get a second active page for the orange side?
Hello, I just read this comment. I am playing around with tabs right now in my project. I realised that is very difficult to do what you say.
What I would recommend to you is to open on your Google Chrome the developer tools and see what’s inside the .css of your ion-tabs page. It is so messed up I am doing a very simple tabs style in order to not loosing my mind.
If I were you, I’d do a menu in stead of a side tabs. Good luck!
This is going to be implemented by Ionic once the stable version is out in January.
There are some essential things missing to easily create PWA and Ionic team is going to focus on those features. So finger’s cross for the future and let’s see what happens