Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Formatting text in Sweet Alert dialog

Featured Replies

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?

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

  • Author

Thanks for that information.   It was a classic case of the answer being easy once one has the correct information :) 

  • 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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.