swal show loading on confirm button code example
Example 1: swalert 2 show loader
Swal.fire({
title: 'Please Wait !',
html: 'data uploading',// add html attribute if you want or remove
allowOutsideClick: false,
onBeforeOpen: () => {
Swal.showLoading()
},
});
Example 2: sweet alert bootstrap
Swal.fire( 'Good job!', 'You clicked the button!', 'success')