(1)对话框
let
alert =
this.
alertCtrl.
create({
title:
'存量报表',
inputs: [
{
label:
'删除',
type:
'radio',
value:
'delOne',
checked:
true
},
{
label:
'删除全部',
type:
'radio',
value:
'delAll',
}
],
buttons: [
{
text:
'取消',
role:
'cancel',
handler:
data
=> {
console.
log(
'Cancel clicked');
}
},
{
text:
'确定',
handler:
data
=> {
if(
"delOne" ==
data){
console.
log(
'delOne');
}
else
if(
"delAll" ==
data){
console.
log(
'delAll');
}
}
}
]
});
alert.
present();