sweetalert2 Questions
6
Getting this error after npm start in angular project.
app/app.component.ts(12,7): error TS2304: Cannot find name 'swal'.
app/app.component.ts(21,7): error TS2304: Cannot find name 'swal'.
I ...
Heinz asked 30/7, 2016 at 19:18
4
Solved
I'm using the exactly code of SweetAlert2 examples page:
swal({
title: 'Are you sure?',
text: "You won't be able to revert this!",
type: 'warning',
showCancelButton: true,
confirmButtonColor:...
Rubdown asked 18/4, 2018 at 10:2
2
Solved
I have recently been working with SweetAlert2 on my project, and I would like to put together a "Add Note" feature.
User clicks on a button, gets directed to a page, and the following executes.
...
Dodiedodo asked 20/10, 2017 at 2:33
3
I am trying to add an extra class for my modal so I can select it from LESS and turn it's background to transparent. But customClass is not working. Is there any other way to do it. BTW I have alre...
Ardell asked 26/2, 2018 at 10:12
2
I am using sweetalert to show a message when an ajax response is success but it doesnot displays properly ie,no sucess icon is shown.
This is my ajax code
var formData = $("#enqform").serializ...
Crosscut asked 29/4, 2018 at 5:43
1
Solved
Was working around 5 days ago, just went onto the website and it no longer works, checked Chrome console & found this error.
Rest of the code works just fine, everything pops up as expected. t...
Yeomanly asked 25/2, 2020 at 0:44
2
Solved
I'm using sweealert2 on my project here's my code
header include js via jsdeliver.net
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@8" charset="UTF-8"></script>
Jquery Versi...
Ivonneivor asked 7/11, 2019 at 5:58
1
Solved
Before version 9.0.0 i used this code to completely disable animation on a toast alert.
Swal.fire({
animation : false,
toast: true,
....
});
Now with version 9.* i tried with this code, and t...
Kaluga asked 8/11, 2019 at 9:59
2
Solved
I'm using SweetAlert2 v8 with animate.css to change the popup animation. The animation I am using is fadeInRight. I'm also using chained alerts and would like to change the closing animation to fad...
Felike asked 3/8, 2019 at 20:41
2
Solved
When working in ASP.Net, I often like to have "Are you sure?" popups when clicking things like a delete button. This is easily done like so:
<asp:Button runat="server" id="btnDelete" Text="Dele...
Arleenarlen asked 23/6, 2017 at 20:24
5
Solved
how do I properly escape the cancel button without throwing an error when using promises? My code throws an alert confirmation with a required checkbox. the code executes as it should to the user, ...
Rose asked 4/9, 2016 at 21:24
2
I have used the SweetAlert library for displaying a pop up in my application. This is my code
swal({
title: "Are you sure?",
text: "Test message?",
type: "info",
showCancelButton: true,
focus...
Regret asked 27/9, 2017 at 12:2
2
Solved
I am using the SweetAlert2 dialog with a form inside. I want to use the Bootstrap DateTimePicker widget.
The calendar widget popup is displayed within the SweetAlert window instead of over top of ...
Shannon asked 22/8, 2017 at 19:34
1
Solved
Problem
I'm using SweetAlert2, opening an alert with custom HTML inside it, that shows a few input boxes. I want to use the normal confirm/cancel buttons from SweetAlert2 to send the value of thos...
Cominform asked 5/10, 2017 at 17:25
1
Solved
THE PROBLEM:
I want to redirect a user to another page after clicking OK on the sweet alert, but the user is not redirected until I open up another sweet alert for some reason.
You can breakpoint o...
Customer asked 21/9, 2017 at 19:26
2
Solved
I'm using sweetAlert2 and I'm trying to use bootstrap 4 to style buttons, setting the properties:
buttonsStyling: false,
confirmButtonClass: 'btn btn-primary btn-lg',
cancelButtonClass: 'btn btn-l...
Voroshilov asked 17/2, 2017 at 1:40
1
Solved
I have a SweetAlert2 that allows text input, and I give it a default value. I'd like this default value to be highlighted when the alert pops up, so that the user can immediately overwrite it if ne...
Friday asked 30/6, 2017 at 11:43
1
Solved
I'd like to make a condition and call a swal for each one (Sweetalert2). But only one of the swal runs. How can I do it?
function validateEmail(email) {
var regex = /\S+@\S+\.\S+/;
return regex....
Lounging asked 28/6, 2016 at 20:38
© 2022 - 2024 — McMap. All rights reserved.