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>' })
Project Usage
121
Creation Date
Changed Date
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

OPENAI CHATBOT

OPENAI CHATBOT

14:29:44
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.