Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

How can you hide one of the actionsheet buttons conditionally?

$
0
0

Maybe try:

$scope.showActionSheet = function() {
$ionicActionSheet.show({
buttons: [
{ text: 'Share' },
{ text: 'Report'},
],
destructiveText: '<a ng-if="showdelete">Delete</a>', //show this only if scope.showdelete = true
titleText: 'Actions',
cancelText: 'Cancel',
cancel: function() {
// add cancel code..
}


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>