-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds separate menu item for ionic official components
- Loading branch information
Showing
39 changed files
with
107 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
src/pages/ionic-official-components/ionic-official-components.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<ion-header> | ||
<ion-navbar> | ||
<button ion-button menuToggle> | ||
<ion-icon name="menu"></ion-icon> | ||
</button> | ||
<ion-title>Ionic Official Components</ion-title> | ||
</ion-navbar> | ||
</ion-header> | ||
<ion-content> | ||
<ion-list> | ||
<button ion-item *ngFor="let item of items" (click)="itemTapped($event, item)"> | ||
{{item.title}} | ||
</button> | ||
</ion-list> | ||
</ion-content> |
38 changes: 38 additions & 0 deletions
38
src/pages/ionic-official-components/ionic-official-components.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { AlertsPage } from './alert/alert'; | ||
import { ButtonsListPage } from './button/button'; | ||
import { CardListPage } from './card/card'; | ||
import { Component } from '@angular/core'; | ||
|
||
import { NavController } from 'ionic-angular'; | ||
|
||
@Component({ | ||
selector: 'page-ionic-official-components', | ||
templateUrl: 'ionic-official-components.html' | ||
}) | ||
export class IonicOfficialComponentsPage { | ||
rootPage: any; | ||
items: Array<{ title: string, page: any }>; | ||
|
||
constructor(public navCtrl: NavController) { | ||
this.rootPage = CardListPage; | ||
|
||
this.items = [ | ||
{ | ||
title: 'Buttons', | ||
page: ButtonsListPage | ||
}, | ||
{ | ||
title: 'Alerts', | ||
page: AlertsPage | ||
}, | ||
{ | ||
title: 'Cards', | ||
page: CardListPage | ||
}, | ||
] | ||
} | ||
|
||
itemTapped(event, item) { | ||
this.navCtrl.push(item.page); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters