Sweet Alert 2
Integrates the Sweet Alert 2 JavaScript plug-in to a modern replacement for JavaScript's alert with beautiful themed alerts.
Installation
1. Sweetalert2 Depends upon Sweetalert2 library so you have to Download the SweetAlert2 library and save it to /libraries/sweetalert2/sweetalert2.all.js.
Note: In Drupal 10 path will be moved to /libraries/sweetalert2/dist/sweetalert2.all.js
2. after saving it download and enable the SweetAlert2 module.
Examples
See list of available sweetalert2 Examples here.
Usage
Here is the simple syntax that used on JS .
Swal.fire({
icon: 'error',
title: 'Oops...',
text: 'Something went wrong!',
footer: '<a href="">Why do I have this issue?</a>'
})
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.