igx-slide-out-splitpane v0.0.4
Ionic directive created for the SplitPane component.

Install
$_ npm install igx-slide-out-splitpane --saveImport module to projects
app.module.tsimport { IgxSlideOutSplitPaneModule } from "../directives/igx-slide-out-splitpane.module";
@NgModule({ declarations: MyApp , imports: BrowserModule, IonicModule.forRoot(MyApp), NgxIonExpandableNavModule ,
Add a the splitpane component to your
app.component.ts filewith theigxSlideOutSplitPanedirective in theion-menu.Remember to add icons to the menu in your
app.components.tsfile. This example below adds an icon properties to the pages array.pages: Array<{ title: string, component: any, icon: string }>; constructor(public platform: Platform, public statusBar: StatusBar, public splashScreen: SplashScreen) { this.initializeApp(); // used for an example of ngFor and navigation this.pages = [ { title: 'Home', component: HomePage, icon: 'md-analytics' }, { title: 'List', component: ListPage, icon: 'md-appstore' } ]; } ....Now in your
app.htmlfile update the menu to include the icons<ion-menu [content]="content" igxSlideOutSplitPane> <ion-header> <ion-toolbar> <ion-title>Menu</ion-title> </ion-toolbar> </ion-header> <ion-content> <ion-list> <button icon-right menuClose ion-item *ngFor="let p of pages" (click)="openPage(p)"> {{p.title}} <ion-icon [name]="p.icon" item-right></ion-icon> </button> </ion-list> </ion-content>The stylesheet
src/theme/igx.slide.out.splitpane.scssneeds to be added manually and then@importfrom the mainsrc/theme/variables.scssfile.... @import "ionic.theme.default"; @import "igx.slide.out.splitpane"; ...