Created
December 16, 2019 18:13
-
-
Save parzibyte/9f8929fb7f0ef7fd67cd9d3cad7728b4 to your computer and use it in GitHub Desktop.
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