Answers for "sweetalert 1 docs"

1

swal change confirm button class

Swal.fire({
    title: 'example text',
    buttonsStyling: false,
    customClass: {
    	confirmButton: 'example-class' //insert class here
    }
})
Posted by: Guest on November-24-2020
1

sweetalert 2 documentation

Swal.fire({
  title: 'Error!',
  text: 'Do you want to continue',
  icon: 'error',
  confirmButtonText: 'Cool'
})
Posted by: Guest on May-19-2021
0

change icon in sweet alert

swal({  icon: "error",});
Posted by: Guest on June-02-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language