Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

How can you hide one of the actionsheet buttons conditionally?

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



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