feat(toast): optionally render ion-icon from asset path if provided (#18969)

This commit is contained in:
James Spencer
2019-08-02 06:17:43 -07:00
committed by Adam Bradley
parent 3e1dfc657b
commit 23f327ecb6

View File

@ -243,7 +243,7 @@ export class Toast implements ComponentInterface, OverlayInterface {
<div class="toast-button-inner"> <div class="toast-button-inner">
{b.icon && {b.icon &&
<ion-icon <ion-icon
name={b.icon} icon={b.icon}
slot={b.text === undefined ? 'icon-only' : undefined} slot={b.text === undefined ? 'icon-only' : undefined}
class="toast-icon" class="toast-icon"
/>} />}