itimpi Posted November 14, 2019 Share Posted November 14, 2019 I want to format some text in a Sweet Alert dialog. At the moment I have the dialog working with plain text by using a parameter of the form: text: 'some text' Looking things up on the internet it looks like it should be able to do formatting by using: html: 'some html' instead of the 'text' parameter but this does not seen to be working! I would welcome any feedback on how to achieve this or thoughts on what I might be doing wrong. Is the 'html' option not supported in the version of Sweet Alert that is included in Unraid? Quote Link to comment
Squid Posted November 15, 2019 Share Posted November 15, 2019 (edited) Html is a true | false All the formatting etc goes into the text entry Fully supported (delete config/plugins/community.applictions/accepted and then hit apps Should be noted that unraid includes swal, and not swal2 so you have to dig for the proper docs (good luck with that - probably best to look at CA / dynamix for examples) Edited November 15, 2019 by Squid Quote Link to comment
itimpi Posted November 15, 2019 Author Share Posted November 15, 2019 Thanks for that information. It was a classic case of the answer being easy once one has the correct information Quote Link to comment
itimpi Posted November 21, 2019 Author Share Posted November 21, 2019 In case anyone else has a similar question here is a link to a copy of the Sweet Alert 1 documentation (the version built into Unraid). In addition there is a Upgrading from 1.x guide that highlights the differences to Sweet Alert v2. 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.