This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Swal | |
.fire({ | |
title: "Venta #123465", | |
text: "¿Eliminar?", | |
icon: 'warning', | |
showCancelButton: true, | |
confirmButtonText: "Sí, eliminar", | |
cancelButtonText: "Cancelar", | |
}) | |
.then(resultado => { | |
if (resultado.value) { | |
// Hicieron click en "Sí" | |
console.log("*se elimina la venta*"); | |
} else { | |
// Dijeron que no | |
console.log("*NO se elimina la venta*"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment