“Dokumentasi Sweetalert 2” Kode Jawaban

sweetalert2

$ npm install sweetalert2
Elegant Eel

Dokumentasi Sweetalert 2

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

Jawaban yang mirip dengan “Dokumentasi Sweetalert 2”

Pertanyaan yang mirip dengan “Dokumentasi Sweetalert 2”

Lebih banyak jawaban terkait untuk “Dokumentasi Sweetalert 2” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya