Q:

Ionic 3- actionsheet button click event

Please help me to add buttonClick on actionSheet buttons in ionic 3, on click of button items i have to open modal (custom alert).Here is the code: 
    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();

    }

A:

You just need to add another button item to above array:
 buttons: [
     {
         text: 'Add',
         handler: () => {
           openModal();
         }
       }
   ]

Then separate method for creating a modal popup:
 openModal(){

 }

Note: Don't use like this handler: function(){} always use flat arrow functions as shown in my example above.

