I'm having trouble adding input text fields and checkboxes to my alert. Can someone help me fix it?
I need to display text box and checkbox fields in my alert.
Here is my code:
doPrompts() {
let prompt = this.alertCtrl.create({
title: 'Add new add-on',
message: "",
inputs: [
{
placeholder: 'Select category',
},
{
placeholder: 'Description',
},
{
placeholder: 'Units',
},
{
placeholder: '$ 00.00',
}
],
buttons: [
{
text: 'Cancel',
handler: data => {
console.log('Cancel clicked');
}
},
{
text: 'Add',
handler: data => {
console.log('Saved clicked');
}
}
]
});
prompt.present();
}