“Sweetalert2 JS” Respostas de código

Instale Sweetalert2

npm install --save sweetalert2
Excited Eel

Tipos de incêndio Swal

swal({
  title: "Are you sure?",
  text: "Your will not be able to recover this imaginary file!",
  type: "danger",
  showCancelButton: true,
  confirmButtonClass: "btn-danger",
  confirmButtonText: "Yes, delete it!",
  closeOnConfirm: false
},
function(){
  swal("Deleted!", "Your imaginary file has been deleted.", "success");
});
Worrisome Whale

Sweetalert2

$ npm install sweetalert2
Elegant Eel

Documentação Sweetalert 2

Swal.fire({
  title: 'Error!',
  text: 'Do you want to continue',
  icon: 'error',
  confirmButtonText: 'Cool'
})
Disturbed Dogfish

Sweetalert2

Swal.fire(
  'Data Add Successfully!',
  'You clicked the button!',
  'success'
)
Graceful Goose

Sweetalert2 JS

<link href="//cdn.jsdelivr.net/npm/@sweetalert2/theme-dark@4/dark.css" rel="stylesheet">
<script src="//cdn.jsdelivr.net/npm/sweetalert2@10/dist/sweetalert2.min.js"></script>
Relieved Rattlesnake

Respostas semelhantes a “Sweetalert2 JS”

Perguntas semelhantes a “Sweetalert2 JS”

Mais respostas relacionadas para “Sweetalert2 JS” em JavaScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código