“Sweetalert 2 Dokumentation” Code-Antworten

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(
  'Good job!',
  'You clicked the button!',
  'failed'
)
Wrong Worm

sweetalert2

const Toast = Swal.mixin({
  toast: true,
  position: 'top-end',
  showConfirmButton: false,
  timer: 3000,
  timerProgressBar: true,
  didOpen: (toast) => {
    toast.addEventListener('mouseenter', Swal.stopTimer)
    toast.addEventListener('mouseleave', Swal.resumeTimer)
  }
})

Toast.fire({
  icon: 'success',
  title: 'Signed in successfully'
})
Samir Amegroud

sweetalert2

const { value: email } = await Swal.fire({  title: 'Input email address',  input: 'email',  inputLabel: 'Your email address',  inputPlaceholder: 'Enter your email address'})if (email) {  Swal.fire(`Entered email: ${email}`)}
Thoughtless Tarantula

Ähnliche Antworten wie “Sweetalert 2 Dokumentation”

Fragen ähnlich wie “Sweetalert 2 Dokumentation”

Weitere verwandte Antworten zu “Sweetalert 2 Dokumentation” auf JavaScript

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen