Module Description
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>' })
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>' })
Module Link
Project Usage
121
Security Covered
Not Covered By Security Advisory
Version Available
Production
Module Summary
This module aims to solve the issue of replacing JavaScript's alert with themed alerts using the Sweet Alert 2 JavaScript plug-in.
Data Name
sweetalert2