“sweetalert2 js” Code-Antworten

installieren sweetAgerert2

npm install --save sweetalert2
Excited Eel

Swal -Feuertypen

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

Sweetalert 2 Dokumentation

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

Ähnliche Antworten wie “sweetalert2 js”

Fragen ähnlich wie “sweetalert2 js”

Weitere verwandte Antworten zu “sweetalert2 js” auf JavaScript

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen