mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
feat(toast): optionally render ion-icon from asset path if provided (#18969)
This commit is contained in:

committed by
Adam Bradley

parent
3e1dfc657b
commit
23f327ecb6
@ -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"
|
||||||
/>}
|
/>}
|
||||||
|
Reference in New Issue
Block a user