November 14, 20196 yr 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?
November 15, 20196 yr 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, 20196 yr by Squid
November 15, 20196 yr Author Thanks for that information. It was a classic case of the answer being easy once one has the correct information
November 21, 20196 yr Author 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.
Archived
This topic is now archived and is closed to further replies.