I need assistance with adding buttonClick functionality to actionSheet buttons in ionic 3. When a button is clicked, I want to open a modal (custom alert). Below is the code snippet:
openActionSheet() {
console.log('opening');
let actionsheet = this.actionSheetCtrl.create({
title:"Assign a status to the Request",
cssClass:'action-sheet-css',
buttons:[{
text: 'Collect Documents',
icon: !this.platform.is('ios') ? 'cog' : null,
handler: () => {
}
},{
text: 'Reschedule',
icon: !this.platform.is('ios') ? 'cog' : null,
handler: function(){
console.log("reschedule click");
}
},{
text: 'Contact Error',
icon: !this.platform.is('ios') ? 'cog' : null,
handler: function(){
}
},{
text: 'Customer Denied',
icon: !this.platform.is('ios') ? 'cog' : null,
handler: function(){
}
}]
});
actionsheet.present();
}