You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There're some case that the default icons of Message component is not suitable for our products, it's necessary to add an api for developer to use custom icons.
What does the proposed API look like?
I hope that add an new api for Message component like below:
this.message.success('Loading finished',
{ nzCustomIcon: 'icon template ref or html like <i class="fas fa-angle-left"></i>' }
)
Maybe there are better solutions, hoping to get reply from you. Thanks!
The text was updated successfully, but these errors were encountered:
@ishowman You can track this PR #3102. You would be able to put an icon in the template and use messageService.create('', templateWithIcon, options) to achieve that.
What problem does this feature solve?
There're some case that the default icons of Message component is not suitable for our products, it's necessary to add an api for developer to use custom icons.
What does the proposed API look like?
I hope that add an new api for Message component like below:
Maybe there are better solutions, hoping to get reply from you. Thanks!
The text was updated successfully, but these errors were encountered: