Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
updated menu with new icons
Browse files Browse the repository at this point in the history
  • Loading branch information
smukov committed Jun 25, 2016
1 parent 5014dbd commit 48c9aaa
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 39 deletions.
10 changes: 8 additions & 2 deletions Ionic/app/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
<ion-title >Menu</ion-title>
</ion-toolbar>
<ion-content>
<ion-list>
<button ion-item *ngFor="let p of pages" (click)="openPage(p)">
<ion-list no-lines>
<button ion-item *ngFor="let p of primaryPages" (click)="openPage(p)">
<ion-icon name="{{p.icon}}"></ion-icon>
{{p.title}}
</button>
<ion-item-divider style="min-height: 0px; padding:0px;"></ion-item-divider>
<button ion-item *ngFor="let p of settingsPages" (click)="openPage(p)">
<ion-icon name="{{p.icon}}"></ion-icon>
{{p.title}}
</button>
</ion-list>
Expand Down
15 changes: 8 additions & 7 deletions Ionic/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {Nav} from 'ionic-angular';
import {StatusBar} from 'ionic-native';
import {TabsPage} from './pages/tabs/tabs';
import {Page1} from './pages/page1/page1';
import {Page2} from './pages/page2/page2';
import {Page3} from './pages/page3/page3';
import {LoginPage} from './pages/loginPage/loginPage';
import {ProfilePage} from './pages/profilePage/profilePage';
Expand Down Expand Up @@ -34,12 +33,14 @@ export class MyApp {
this.initializeApp();

// set our app's pages (they appear in menu)
this.pages = [
{ title: 'My Profile', component: ProfilePage },
{ title: 'Contact', component: ContactPage },
{ title: 'Page 1', component: Page1 },
{ title: 'Page 2', component: Page2 },
{ title: 'Page 3', component: Page3 }
this.primaryPages = [
{ title: 'My Profile', component: ProfilePage, icon: 'person', type: 'page' },
{ title: 'Contact', component: ContactPage, icon: 'people', type: 'page' }
];

this.settingsPages = [
{ title: 'Settings', component: Page1, icon: 'settings', type: 'page' },
{ title: 'Send Feedback', component: Page3, icon: 'send', type: 'page' }
];

this.rootPage = LoginPage;
Expand Down
14 changes: 0 additions & 14 deletions Ionic/app/pages/page2/page2.html

This file was deleted.

11 changes: 0 additions & 11 deletions Ionic/app/pages/page2/page2.js

This file was deleted.

3 changes: 0 additions & 3 deletions Ionic/app/pages/page2/page2.scss

This file was deleted.

13 changes: 11 additions & 2 deletions Ionic/app/theme/app.core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

@import "../pages/page1/page1";

@import "../pages/page2/page2";

@import "../pages/page3/page3";

@import "../pages/loginPage/loginPage";
Expand Down Expand Up @@ -55,3 +53,14 @@ p {
word-wrap: break-word;
white-space: normal;
}

ion-menu{
ion-content{
ion-list{
ion-icon{
margin-right: 20px;
color: #595959;
}
}
}
}

0 comments on commit 48c9aaa

Please sign in to comment.