Ion alert issue

How to set Ionic 3 Alert to Select list (input select)

//alert

  doPrompts() {
    let prompt = this.alertCtrl.create({
      title: 'Cash In ($)',
      message: "",

      inputs: [
        {
          label:'Amount',
          name: "Amount",
          placeholder: 'Amount',
        },
        { label:"Detail",
          name: 'Detail',
          placeholder: 'Detail',
        },
        { label:"Account",
          name: 'Account',
          placeholder: 'Account',
        }
      ],

      buttons: [
        {
          text: 'Cancel',
          handler: data => {
            console.log('Cancel clicked');
          }
        },
        {
          text: 'Add',
          handler: data => {
            console.log('Saved clicked');
          }
        }
      ]
    });
    prompt.present();
  }

}

If your end goal is to have select box in the popup then you can go with modal popup instead of alert controller.

1 Like

sir Thanks for the solution but i want know how to add drop down list for alert