I am trying to add icon in buttonLabels in $cordovaActionSheet plugin but it didn't working. I have tried
var options = {
title: 'Share',
buttonLabels: ['<i class="ion-social-facebook"></i> Share via Facebook', '<i class="ion-social-twitter"></i> Share via Twitter'],
};
but it prints tag as it is. How do I show icons in button labels ?
I see you have tagged
ionic-frameworkas well. If you are usingIonicyou can make use of$ionicActionSheetinstead of the$cordovaActionSheet. See this doc.With the
$ionicActionSheetit is no problem adding images: