How to use together radio and checkbox with alert


#1

Hello friends,
I have to use two different methods in order to show the product properties and types in my application, so I have to show the features with checkbox and radio buttons. I will do this in an alert control, but I can not use the alert radio button and checkbox at the same time. Thanks in advance for your help.

openDetailAlert() {
    let alert = this.alertCntrl.create({
      title: 'Ürün Detaylandırma'      
    });
    alert.addInput({
      type:'radio',
      label:'Sade',
      value:'1'
    });
    alert.addInput({
      type:'radio',
      label:'Orta',
      value:'0'
    });
    alert.addInput({
      type:'radio',
      label:'Şekerli',
      value:'0'
    });


    alert.addInput({
      type:'checkbox',
      label:'deneme1',
      value:'value1',
      checked:true
    });
    alert.addInput({
      type:'checkbox',
      label:'deneme2',
      value:'value2'
    });
    alert.present();
  }

#2

Hi

You cant as per specification in the doc of Alert.

A many requested feature

You will have to make a custom alert using modal, popover etc


#3

Thank Tommertom.
I use the modal structure necessarily.