Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49248

How to position icon at end of button in ActionSheetController?

$
0
0

@Sweg wrote:

I am able to display the below button in an action sheet controller in my Ionic 5 app:

cancel

Here is my code:

this.actionSheetCtrl.create({
      header: 'Choose an Action',
      buttons: [
        {
          text: 'Cancel',
          role: 'destructive',
          icon: 'close-outline',
          handler: () => { }
        },
      ]
    }).then(actionSheetEl => {
      actionSheetEl.present();
});

I’m just wondering is it possible to put the icon at the end of the button? So that the position’s of the text & the icon are effectively swapped?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49248

Trending Articles



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