sweetalert content object code example
Example 1: swal change confirm button class
Swal.fire({
title: 'example text',
buttonsStyling: false,
customClass: {
confirmButton: 'example-class' //insert class here
}
})
Example 2: change icon in sweet alert
swal({ icon: "error",});