mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
docs(demos): add tabs demo
This commit is contained in:
@@ -24,7 +24,12 @@ section.hidden {
|
||||
}
|
||||
|
||||
.components-demo h4 {
|
||||
text-align: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.components-demo section {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
ion-scroll {
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user