Swal.fire Alert attributes and stuff
Hi Sean and team
I love the feel of the Swal fire so I'm trying to make it a bit more customised as a standalone query (in place of the more clunky looking modals). I've checked your documentation here: https://preview.keenthemes.com/metronic/demo6/features/miscellaneous/sweetalert2.html, and here: https://preview.keenthemes.com/metronic8/demo1/documentation/general/sweetalert.html.
It doesn't appear to accept carriage returns (new lines) in the text data.
I've tried \n \r and , and adding a new item in the Text array ['line 1 of text','line 2 of text']
None of these work, but I'm hopeful you can provide some guidance on a workaround.
Thanks
Replies (3)
Hi,
You can try to use HTML format, instead of text:
swal({ title: 'hi', html: 'First line<br>Second line' });
Regards.
Danka!
All the best with your projects
Your Support Matters!
We will highly appreciate your Metronic Review on Themeforest.
Please go to Themeforest Downloads page, select Metronic & leave your feedback.