Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

How to put two radio inputs in alert?

$
0
0

@stewchicken wrote:

below code works perfect, but i need add another radio input for delivery (standard delievery, express delievery), how to add this radio input into the alert?

any hints will be more than welcome!

advanceSearch(): void{
let prompt = this.alertCtrl.create({
title: 'payment',
message: 'choose payment ',
inputs : [
{
type:'radio',
label:'paypal'
value:'paypal'
},
{
type:'radio',
label:'bank transfer'
value:'bank transfer'
}

],
buttons : [
{
text: "Cancel",
handler: data => {
console.log("cancel clicked");
}
},
{
text: "Buy",
handler: data => {
console.log("Buy clicked");
}
}
]
});
prompt.present();
}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>