sweetalert do something on close code example Example: sweetalert close on custom button click swal.close()