I am trying to add toggle to my Action Sheets? I have doubts and would like to Help …
My Action Sheets it is so.
can I add a toggle?
openMenu() {
let actionSheet = this.actionsheetCtrl.create({
title: 'Other Options',
cssClass: 'action-sheets-basic-page',
buttons: [
{
text: 'To View',
icon: !this.platform.is('ios') ? 'eye' : null,
handler: () => {
console.log('To View clicked');
}
},
{
text: 'Sign Price',
icon: !this.platform.is('ios') ? 'logo-usd' : null,
handler: () => {
console.log('Sign Price clicked');
}
},
{
text: 'Remove',
role: 'destructive',
icon: !this.platform.is('ios') ? 'trash' : null,
handler: () => {
console.log('Remove clicked');
}
},
{
text: 'Cancel',
role: 'cancel', // will always sort to be on the bottom
icon: !this.platform.is('ios') ? 'close' : null,
handler: () => {
console.log('Cancel clicked');
}
}
]
});
actionSheet.present()
}