-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
How to add multiple text rows? #740
Comments
Here's my hack based off https://sweetalert.js.org/docs/#content.
I'm sure there is a better way. |
For now, @simon1tan's way of doing it is the way to go, but I agree that it's a bit tedious for something as simple as adding a line break. I think the best way would be if SweetAlert automatically replaced swal("Hello\nthere!") If anyone wants to tackle this (should be very simple), feel free to send a pull request! |
It has been hard to find a way to use the HTML elements, your hack has helped me, thank you very much friend! PD: the "\n" it's not working for me, it's not doing a line break |
I think automatically things are not sood good, I think is better different options, example
|
u can use html to use " |
const lines = ['You are very important to us, all information received will always remain confidential.', 'We will contact you as soon as we review your message.', 'We have sent an email to you at '+contact_email+' , Please check it for quick response.']; swal('Thank you for contacting us!',lines.join('\n\n'),'success'); //worked for me! |
|
for my case added div tag to cover the text will work
|
|
Hello
How can i make multiple rows or use html
?
The text was updated successfully, but these errors were encountered: