File

src/modules/firetask/components/ft-menu/ft-menu.ts

Metadata

selector ft-menu
templateUrl ft-menu.html

Index

Properties
Methods
Inputs

Constructor

constructor(app: App, session: FtSessionProvider, events: Events, menu: MenuController)
Parameters :
Name Type Optional Description
app App
session FtSessionProvider
events Events
menu MenuController

Inputs

content

Type: any

Methods

ionViewDidEnter
ionViewDidEnter()
Returns : void
logout
logout()
Returns : void
ngOnDestroy
ngOnDestroy()
Returns : void
ngOnInit
ngOnInit()
Returns : void
openPage
openPage(page: FtPageInterface)
Parameters :
Name Type Optional Description
page FtPageInterface
Returns : void
openProfile
openProfile()
Returns : void

Properties

accountPages
accountPages: FtPageInterface[]
Type : FtPageInterface[]
Public app
app: App
Type : App
appPages
appPages: FtPageInterface[]
Type : FtPageInterface[]
Public events
events: Events
Type : Events
Public menu
menu: MenuController
Type : MenuController
navCtrl
navCtrl: Nav
Type : Nav
Decorators : ViewChild
Public session
session: FtSessionProvider
Type : FtSessionProvider
<ion-menu id="ft-menu" [content]="content">
  <ion-content color="secondary">
    <br /><br />
    <ft-account-avatar (tap)="openProfile()"></ft-account-avatar>
    <br /><br />
    <ion-list class="items">
      <button ion-item *ngFor="let p of appPages" (tap)="openPage(p)">
        <ion-icon item-left [name]="p.icon"></ion-icon>
        {{p.title}}
      </button>
    </ion-list>
    <ion-list>
      <ion-list-header>
        Account
      </ion-list-header>
      <button ion-item *ngFor="let p of accountPages" (tap)="openPage(p)">
        <ion-icon item-left [name]="p.icon"></ion-icon>
        {{p.title}}
      </button>
      <button ion-item (tap)="logout()">
        <ion-icon item-left name="log-out"></ion-icon>
        Logout
      </button>
    </ion-list>

  </ion-content>

</ion-menu>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""