how to use sweetalert with link button code example Example: sweetalert close on custom button click swal.close()