Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML in body #19

Closed
ganeshkantu opened this issue Aug 4, 2017 · 5 comments
Closed

HTML in body #19

ganeshkantu opened this issue Aug 4, 2017 · 5 comments
Assignees

Comments

@ganeshkantu
Copy link

ganeshkantu commented Aug 4, 2017

Very interested in using this. One question - does this component support HTML in body? I did not see any reference to this in the docs or examples. If this is supported, could you please provide an example?

@artemsky
Copy link
Owner

artemsky commented Aug 4, 2017

No, it's not.
Nice idea btw.
I'll implement this as soon as possible

@artemsky
Copy link
Owner

@ganeshkantu
Copy link
Author

Thank you for the quick turnaround @artemsky. Just trying this now. See the new HTML toast type. Is there a way to pass HTML in body to the other toasts like Success?

@artemsky
Copy link
Owner

artemsky commented Aug 13, 2017

@ganeshkantu Yes. There are 2 ways now.

service.html(HTMLString, {
   type: SnotifyType.SUCCESS
})

or

service.warning(null, null, {
   html: 'Your html string'
})

https://github.com/artemsky/ng-snotify/blob/master/documentation/v2/api.md#html

@ganeshkantu
Copy link
Author

This is perfect. Thank you so much for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants