Ionic 2 select property selectOptions not adding button

Hi,
I want to add button with name and handler

 sel_status_ctrl : any;
 // 
    this.sel_status_ctrl = {
      title: 'Choose Status',
      subtitle: " For company",
      enableBackdropDismiss : false,
      buttons: [
      {
        text: 'Cancel',
        role: 'cancel',
        handler: () => {
          console.log('Cancel clicked');
        }
      },
      {
        text: 'Buy',
        handler: () => {
          console.log('Buy clicked');
        }
      }
    ]
      
   };

And it is only get title, subtitle, enableBackdropDismiss but not getting button why?

If anybody has solution let me know.

Thanks

1 Like

The button array is ignored from the alert options.

You can rename the fields using
<ion-select okText="Okay" cancelText="Dismiss">