Top "Sweetalert2" questions

A responsive, customizable, accessible (WAI-ARIA) replacement for JavaScript's popup boxes with zero dependencies.

Remove "OK" button from sweet alert dialog

I am using javascript sweetalert2 library. I want to remove the OK button from the alert box but I did …

javascript jquery sweetalert sweetalert2
More than 2 buttons on sweetalert 2

I have a sweetalert with 2 buttons but I want to have one more button in it. For example, as of …

javascript jquery sweetalert sweetalert2
How to use sweetalert2 in angular2

Getting this error after npm start in angular project. app/app.component.ts(12,7): error TS2304: Cannot find name 'swal'. app/…

javascript angular typescript sweetalert sweetalert2
Uncaught (in promise) cancel using SweetAlert2

how do I properly escape the cancel button without throwing an error when using promises? My code throws an alert …

javascript jquery ajax sweetalert sweetalert2
SweetAlert2 - Bind another event to cancel button?

I am using the latest version of the awesome SweetAlert2 jquery plugin. I have a simple SweetAlert with 2 buttons. 1 button …

button sweetalert sweetalert2
Show loading alert with SweetAlert2 without having to interact

Right now I have this code: swal({ title: 'Loading cars from data base', showLoaderOnConfirm: true, preConfirm: () => { return this.carsSvc.…

typescript promise sweetalert sweetalert2
Angular Material: How to close all mat-dialogs and sweet-alerts on logout

I wanted to close all my dialog's (mat-dialog, bootstrap modals & sweet alerts) on logout in Angular. This is how …

angular angular-material ng-bootstrap sweetalert2
Sweetalert2 Ajax - post input data

I have recently been working with SweetAlert2 on my project, and I would like to put together a "Add Note" …

javascript jquery ajax sweetalert2
How to add close button in SweetAlert pop up

I have used the SweetAlert library for displaying a pop up in my application. This is my code swal({ title: "…

javascript angularjs sweetalert sweetalert2
How to listen for when sweet alert closes

I am currently working with sweetalert2 and I am trying to detect when the alert closes. However the DeleteUnsavedImages function …

javascript jquery sweetalert sweetalert2