“Sweetalert2” Código de respuesta

Sweetalert2

$ npm install sweetalert2
Elegant Eel

Sweetalert2

npm install sweetalert2
Scary Salamander

Sweetalert2

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

Sweetalert2

Swal.fire(
  'Good job!',
  'You clicked the button!',
  'failed'
)
Wrong Worm

Sweetalert2

Swal.fire({
  title: '<strong>HTML <u>example</u></strong>',
  icon: 'info',
  html:
    'You ccccc can use <b>bold text</b>, ' +
    '<a href="//sweetalert2.github.io">links</a> ' +
    'and other HTML tags',
  showCloseButton: true,
  showCancelButton: true,
  focusConfirm: false,
  confirmButtonText:
    '<i class="fa fa-thumbs-up"></i> Great!',
  confirmButtonAriaLabel: 'Thumbs up, great!',
  cancelButtonText:
    '<i class="fa fa-thumbs-down"></i>',
  cancelButtonAriaLabel: 'Thumbs down'
})
Marlon Sab-a

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

Sweetalert2

Best alert library in javascript for me
:)
Fair Flatworm

Sweetalert2

npm install sweetalert2 --save
Thankful Tamarin

Respuestas similares a “Sweetalert2”

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código