-
Notifications
You must be signed in to change notification settings - Fork 0
ActionSheetController
wenbobao edited this page Oct 10, 2017
·
1 revision
ActionSheetController
import { ActionSheetController } from 'ionic-angular'
export class MyClass{
constructor(public actionSheetCtrl: ActionSheetController) { }
presentActionSheet() {
const actionSheet = this.actionSheetCtrl.create({
title: 'Modify your album',
buttons: [
{
text: 'Destructive',
role: 'destructive',
handler: () => {
console.log('Destructive clicked');
}
},
{
text: 'Archive',
handler: () => {
console.log('Archive clicked');
}
},
{
text: 'Cancel',
role: 'cancel',
handler: () => {
console.log('Cancel clicked');
}
}
]
});
actionSheet.present();
}
}