SHARE
TWEET

Untitled

a guest Jun 27th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const swalWithBootstrapButtons = Swal.mixin({
  2.   customClass: {
  3.     confirmButton: 'btn btn-primary',
  4.     cancelButton: 'btn btn-secundary'
  5.   },
  6.   buttonsStyling: false,
  7. })
  8.  
  9. swalWithBootstrapButtons.fire({
  10.   title: '┬┐Estas seguro?',
  11.   text: 'Quieres eliminar a '+user.name+ ''+user.lastname+ ' ?',
  12.  
  13.   showCancelButton: true,
  14.   confirmButtonText: 'Si, Eliminarlo!',
  15.   cancelButtonText: 'No, cancelar!',
  16.   reverseButtons: false
  17. }).then((result) => {
  18.   if (result.value) {
  19.  
  20.     ///EL DATO ME LLEGA INDEFINIDO AQUI
  21. console.log(user);
  22.  
  23.  
  24.  
  25.   } else if (
  26.     // Read more about handling dismissals
  27.     result.dismiss === Swal.DismissReason.cancel
  28.   ) {
  29.  
  30.   }
  31. })
  32.  
  33.  
  34. },
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top