docs(demos): add tabs demo

This commit is contained in:
Drew Rygh
2015-10-01 14:26:20 -05:00
parent c1406d259b
commit d880815bb3
3 changed files with 14 additions and 5 deletions

View File

@@ -24,7 +24,12 @@ section.hidden {
}
.components-demo h4 {
text-align: center;
text-align: center;
}
.components-demo section {
width: 100%;
height: 100%;
}
ion-scroll {

View File

@@ -16,7 +16,7 @@ class DemoApp {
constructor(actionSheet: ActionSheet, zone: NgZone) {
this.actionSheet = actionSheet;
this.component = {
title: 'Action Sheets',
title: 'Tabs',
};
window.onmessage = (e) => {
zone.run(() => {

View File

@@ -1,7 +1,7 @@
<ion-toolbar><ion-title>{{ component.title }}</ion-title></ion-toolbar>
<ion-content class="has-header padding components-demo">
<ion-content class="has-header components-demo">
<section id="action-sheet" [ng-class]="{hidden: component.title !== 'Action Sheets' }">
<button class="button" (click)="openMenu()">
@@ -266,8 +266,12 @@
</ion-slides>
</section>
<section id="tabs" [ng-class]="{hidden: component.title !== 'Tabs' }">
TODO
<section id="tabs" [ng-class]="{hidden: component.title !== 'Tabs' }">
<ion-tabs tab-bar-placement="bottom">
<ion-tab tab-title="Food" tab-icon="pizza"></ion-tab>
<ion-tab tab-title="Drinks" tab-icon="beer"></ion-tab>
<ion-tab tab-title="Hours" tab-icon="clock"></ion-tab>
</ion-tabs>
</section>
</ion-content>