我试图显示一个复选框以及文本输入字段.(Ionic 3.5.3)
该复选框未显示.我查看了另一个SO线程,提出了类似的问题.代码似乎和我正在做的一样.
代码:
let alert = this.alert.create({
title: 'Name your trip',
inputs: [
{
name: 'name',
placeholder: 'Your trip name',
},
{
name: 'gpsxy',
type:'checkbox',
checked:true,
label:'Log GPS co-ords',
value:"true"
}
],
buttons: [{
text: 'Cancel',
role: 'cancel',
handler: data => {
}
},
{
text: 'Ok',
handler: data => {
}],
});
alert.present();
Run Code Online (Sandbox Code Playgroud)