How to use loop inside AlertController

#1

Hello friends
I need the bellow code to work, but it says alert.addInput() expects one argument but got two.
please suggest me if any other solutions are there.

 openVariant() {
    let alert = this.alertCtrl.create();
    alert.setTitle('Select a Variant');
    this.variants.forEach(element => {
      alert.addInput(
        {
          type: 'radio',
          label: element.title,
          value: element.title
        },
        {
          type: 'hidden',
          value: element.price
        }
      );
    });
    alert.addButton({
      text: 'Cancel',
      role: 'cancel'
    });
    alert.addButton({
      text: 'OK',
      handler: selectedVariant => {
        this.package = selectedVariant.title;
        this.price  = slectedVariant.price
      }
    })
    alert.present();
  }

alertCrl.create({},{}) accept multiple inputs but how it works with loop?