简体   繁体   English

ionic 5 按钮,带有文本 + 图标,侧面有冲洗图标

[英]ionic 5 button with text + icon, flush icon on the side

Here's the button:这是按钮:

<ion-footer>
  <ion-button class="m-0" (click)="calcVolume()" expand="full" color="primary">
    {{'discover_my_recommended_volume'|translate}}
    <ion-icon slot="end" name="chevron-forward-outline"></ion-icon>
  </ion-button>
</ion-footer>

How to flush the icon, in a button with text and icon, completely on the right?如何在带有文本和图标的按钮中完全在右侧刷新图标?

在此处输入图像描述

  <ion-button class="m-0" (click)="calcVolume()" expand="full" color="primary">
    {{'discover_my_recommended_volume'|translate}}
  </ion-button>
<ion-icon slot="end" class="ion-float-right" name="chevron-forward-outline"></ion-icon>
</ion-footer>```

Adding 'ion-float-right' class to the icon should do the trick

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM