【发布时间】:2017-09-18 19:02:02
【问题描述】:
请帮我在 ionic 3 中添加 buttonClick on actionSheet 按钮,点击按钮项我必须打开模式(自定义警报)。这是代码:
openActionSheet() {
console.log('opening');
let actionsheet = this.actionSheetCtrl.create({
title:"Assign a status to the Request",
cssClass:'action-sheet-css',
buttons:[{
text: 'Collect Documents',
icon: !this.platform.is('ios') ? 'cog' : null,
handler: () => {
}
},{
text: 'Reschedule',
icon: !this.platform.is('ios') ? 'cog' : null,
handler: function(){
console.log("reschedule click");
}
},{
text: 'Contact Error',
icon: !this.platform.is('ios') ? 'cog' : null,
handler: function(){
}
},{
text: 'Customer Denied',
icon: !this.platform.is('ios') ? 'cog' : null,
handler: function(){
}
}]
});
actionsheet.present();
}
【问题讨论】:
标签: angular typescript ionic3