I looked at http://codepen.io/mhartington/pen/KwBpRq?editors=101 , and I have not seen cancelButton on android. On iOS everything works fine. How can I display cancelButton?
$ionicActionSheet.show({
titleText: 'ActionSheet Example',
buttons: [
{ text: '<i class="icon ion-share balanced"></i> Share' },
{ text: '<i class="icon ion-arrow-move assertive"></i> Move' },
],
destructiveText: 'Delete', // <<
cancelText: 'Cancel',
cancel: function() {
console.log('CANCELLED');
},
_action-sheet.scss has rule:
.platform-android .action-sheet-cancel {
display: none;
}
To display cancelButton insert in .css/.scss file:
.platform-android .action-sheet-cancel {
display: block !important;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With