Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 16, 2019 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/9f8929fb7f0ef7fd67cd9d3cad7728b4 to your computer and use it in GitHub Desktop.
Save parzibyte/9f8929fb7f0ef7fd67cd9d3cad7728b4 to your computer and use it in GitHub Desktop.
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