sweetalert2 Questions

3

Solved

After closing of the modal I force the browser to scroll to the top of the page to see any error messages. After integrating the SweetAlert2 module to confirm submission the application will auto s...
Prodigious asked 27/9, 2018 at 18:19

4

Solved

I am currently working with sweetalert2 and I am trying to detect when the alert closes. However the DeleteUnsavedImages function is not firing. I thought that assigning the function to the onclose...
Shinto asked 9/10, 2017 at 5:42

3

Solved

I need to disable the confirm button when the user hasn't changed any value in the text box inside the sweet alert and enable it only when the value in the text box has changed but I can't seem to ...
Nonrecognition asked 5/9, 2018 at 12:55

8

Solved

I am using the latest version of the awesome SweetAlert2 jquery plugin. I have a simple SweetAlert with 2 buttons. 1 button is the confirm button, the other is the cancel button. I am using the ht...
Brough asked 21/2, 2017 at 21:33

6

Solved

I have modal in which when i click add bills button it will popup the sweetalert2, the code provided below came from their documentation, so i think there is no problem with the codes, anyways, my ...
Repetend asked 12/8, 2018 at 4:4

2

I am following the documentation and it is working wonders. However, using the iconColor property I get this error in the console: SweetAlert2: Unknown parameter "iconColor". How can I ea...
Concerto asked 5/12, 2020 at 16:49

8

Solved

I have a sweetalert with 2 buttons but I want to have one more button in it. For example, as of now, I have yes and no I want to add one more button say later. Please help. $("#close_account").on(...
Capability asked 1/9, 2016 at 9:54

2

Solved

I define a className to customize a sweetAlert2 but apparently the styling wont apply to the sweet alert. I called the class name everything but nothing seems to work. could the problem be with mai...
Mitten asked 13/4, 2021 at 20:7

1

I have an issue where a 3rd-party library is using some valid CSS parser features that are not available in JSDOM, and I'd just like to suppress those kinds of errors. But given that I'm using JSDO...
Quatrefoil asked 3/10, 2018 at 16:27

9

I'm using sweetalert2 script for when a user posts a comment on my site, It scrolls down to their comment and sweet alert pops up but when they click ok on the sweet alert box it scrolls back upto ...
Philipines asked 9/9, 2017 at 20:59

5

I would like to make a multiple input popup with Sweet Alert2, and one of these input fields should be a select with multiple choices . I tried select2 multiple in some pages like in this example: ...
Terrel asked 19/10, 2017 at 8:14

2

Solved

I'm trying to change the SweetAlert2 popup icon colour for swal2-error. I've changed the variable colour in the node package for it, & put the variable in both my components scss & my glob...
Mullion asked 26/7, 2018 at 12:26

3

Solved

I want to change the 'title' color in SweetAlert2. How can I do that? Thank you in advance function CustomConfirm(title, message, type) { return new Promise((resolve) => { Swal.fire({ title: ...
Baran asked 3/8, 2021 at 15:44

2

I want to add dynamic options to a SweetAlert2 input type select that looks like this: swal({ title: 'Select Ukraine', input: 'select', inputOptions: { 'SRB': 'Serbia', 'UKR': 'Ukraine', 'HRV':...
Lilliamlillian asked 29/6, 2016 at 9:24

12

Solved

I am using javascript sweetalert2 library. I want to remove the OK button from the alert box but I did not find any property for not to display this button. I am using the timer property timer:10...
Bison asked 23/2, 2017 at 5:49

5

Solved

I would like to know how I could put a link in the button that generates the confirmButtonText of Sweet Alert 2. The goal is that when you press that button redirects to a page that removes a reco...
Prier asked 25/2, 2019 at 2:16

3

Right now I have this code: swal({ title: 'Loading cars from data base', showLoaderOnConfirm: true, preConfirm: () => { return this.carsSvc.getCars().then((cars: ICar[]) => { this.setDa...
Zygodactyl asked 13/5, 2017 at 20:22

1

Solved

I want to ask how can I change icon image in sweetalert with image? I've tried change icon image in Swal.fire with image from assets, but it's not working Here's the script Swal.fire({ icon: &quot...
Tit asked 30/4, 2021 at 2:38

1

Solved

I wanted to know if there is a way to make an angular component open up in a sweet alert box, for example Swal.fire( { HTML: '<app-exampleselector></app-exampleselector>', }) wha...
Elzaelzevir asked 24/5, 2020 at 10:11

2

Solved

I wanted to close all my dialog's (mat-dialog, bootstrap modals & sweet alerts) on logout in Angular. This is how it was done in AngularJS (version 1.5): function logout() { //hide $mdDialog ...
Hacking asked 6/4, 2018 at 13:38

2

Solved

I am using sweetalert2 plugin. It works fine, but now i want to remove the button class and add my own class. class=swal2-confirm swal2-styled but i need class=swal2-confirm btn btn-success Any s...
Goran asked 13/7, 2019 at 12:59

2

Solved

I am looking for example where I can align label and dropdown in the same row using sweetalert2. I have tried to add custom label to achieve this but it is going in the different line and I w...
Cellulosic asked 4/1, 2021 at 17:16

2

Solved

I'm migrating one of my projects to TypeScript, in that project SweetAlert2 library is used. The default way to import SweetAlert2 (both JS and CSS) is import Swal from 'sweetalert2' This works...

3

Solved

I have a few plain Sweetalert2 modals in a Vue project. I want to use a custom component inside an alert. For example: <template> <h1>Hello {{name}}</h1> </template> <s...
Brunhilde asked 8/2, 2018 at 10:35

3

Solved

STEP1: In console/terminal. npm install --save sweetalert2 STEP2: In app.scss add this line... @import '~sweetalert2/src/sweetalert2.scss'; STEP3: In app.js add this line... const swal = req...
Romano asked 27/11, 2018 at 20:31

© 2022 - 2024 — McMap. All rights reserved.