@AvkAvk wrote:
showTrips() {
let tripAlert = this.alertCtrl.create();
tripAlert.setTitle(‘Trips’);
for (const trip of this.trips) {
tripAlert.addInput({
type: ‘radio’,
label: trip,
value: trip
});
}
tripAlert.addButton(‘Cancel’);
tripAlert.addButton({
text: ‘Ok’,
handler: trip => {
this.drawTrip(trip);
return true;
}
});
tripAlert.present();
}
Posts: 1
Participants: 1