@prabhu_108 wrote:
How can you hide one of the actionsheet buttons conditionally?
$scope.showActionSheet = function() { $ionicActionSheet.show({ buttons: [ { text: 'Share' }, { text: 'Report'}, ], destructiveText: 'Delete', //show this only if scope.showdelete = true titleText: 'Actions', cancelText: 'Cancel', cancel: function() { // add cancel code.. },
Posts: 2
Participants: 2