Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  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. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement