Hello. Im trying to use alert controller with multi select checkboxes and a badge with a counter in it.
Is this possible to do ?
Code right now
showAlertPickStatuses() {
let alert = this.alertCtrl.create();
alert.setTitle('Choose statuses!');
var input = alert.addInput({
type: 'checkbox',
label: 'Payed',
value: 'Payed',
checked: true
});
alert.addInput({
type: 'checkbox',
label: 'Invoiced',
value: 'Invoiced',
checked: true
});
alert.addInput({
type: 'checkbox',
label: 'In Progress',
value: 'InProgress',
checked: true
});
alert.addInput({
type: 'checkbox',
label: 'Submitted',
value: 'Submitted',
checked: true
});
alert.addInput({
type: 'checkbox',
label: 'Overdue',
value: 'Overdue',
checked: true
});
alert.addButton('Cancel');
alert.addButton({
text: 'OK',
handler: data => {
this.testRadioOpen = false;
this.testRadioResult = data;
console.log(data);
}
});
alert.present().then(() => {
this.testRadioOpen = true;
});
}
Result right now
Desired result