Formatting text in Sweet Alert dialog


itimpi

Recommended Posts

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?

Link to comment

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 by Squid
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.