Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const swalWithBootstrapButtons = Swal.mixin({
- customClass: {
- confirmButton: 'btn btn-primary',
- cancelButton: 'btn btn-secundary'
- },
- buttonsStyling: false,
- })
- swalWithBootstrapButtons.fire({
- title: '¿Estas seguro?',
- text: 'Quieres eliminar a '+user.name+ ''+user.lastname+ ' ?',
- showCancelButton: true,
- confirmButtonText: 'Si, Eliminarlo!',
- cancelButtonText: 'No, cancelar!',
- reverseButtons: false
- }).then((result) => {
- if (result.value) {
- ///EL DATO ME LLEGA INDEFINIDO AQUI
- console.log(user);
- } else if (
- // Read more about handling dismissals
- result.dismiss === Swal.DismissReason.cancel
- ) {
- }
- })
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement