sweetalert2

✨ A beautiful, responsive, highly customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes. Zero dependencies. 🇺🇦

MIT License

Downloads
2.6M
Stars
16.8K
Committers
122

Bot releases are hidden (Show)

sweetalert2 - v9.1.4

Published by limonte almost 5 years ago

9.1.4 (2019-11-05)

Bug Fixes

sweetalert2 - v9.1.3

Published by limonte almost 5 years ago

9.1.3 (2019-11-05)

Bug Fixes

  • remove default backdrop background (5027076)
sweetalert2 - v9.1.2

Published by limonte almost 5 years ago

9.1.2 (2019-11-05)

Bug Fixes

  • default backdrop background (501cab3)
sweetalert2 - v9.1.1

Published by limonte almost 5 years ago

9.1.1 (2019-11-05)

Bug Fixes

  • apply $swal2-backdrop to background instead of background-color (8c27e1a)
sweetalert2 - v9.1.0

Published by limonte almost 5 years ago

9.1.0 (2019-11-05)

Features

  • scss: add $swal2-icon-animations (897b20b)
sweetalert2 - v9.0.2

Published by limonte almost 5 years ago

9.0.2 (2019-11-04)

Bug Fixes

  • types: add missing iconHtml (6f7f316)
sweetalert2 - v9.0.1

Published by limonte almost 5 years ago

9.0.1 (2019-11-04)

Bug Fixes

  • icon when passing it as third string argument (6ad3aa5)
sweetalert2 - v9.0.0

Published by limonte almost 5 years ago

🔴 Breaking change # 1 - rename type to icon

Swal.fire({
- type: 'success'
+ icon: 'success'
  ...
})

🔴 Breaking change # 2 - Deprecated API params were removed:

  • customContainerClass
  • confirmButtonClass
  • cancelButtonClass
  • imageClass
  • inputClass

Use customClass instead: https://sweetalert2.github.io#custom-class

🔴 Breaking change # 3 - Deprecated API methods were removed:

  • disableConfirmButton() (use Swal.getConfirmButton().setAttribute('disabled', '') instead)
  • enableConfirmButton() (use Swal.getConfirmButton().removeAttribute('disabled') instead)
  • setProgressSteps() (use Swal.update({ progressSteps: ... }) instead)
  • showProgressSteps() (use Swal.getProgressSteps() instead)
  • hideProgressSteps() (use Swal.getProgressSteps() instead)

🔴 Breaking change # 4

Cancel buttons isn't getting disabled automatically when showing loader (Swal.showLoader())


🎉 NEW FEATURES

🎉 showClass and hideClass

Now, it's possible to change showing/hiding animations of popups:

Swal.fire({
  ...
  showClass: {
    popup: '...',
    backdrop: '...',
    icon: '...',
  },
  hideClass: {
    popup: '...',
    backdrop: '...',
    icon: '...',
  },
  ...
})

The animation param was deprecated, use showClass: { popup: '', icon: '', backdrop: '' } instead.

🎉 iconHtml

Use any HTML inside icons (e.g. Font Awesome)

Swal.fire({
  ...
  icon: 'success'
  iconHtml: '<i class="far fa-thumbs-up"></i>'
  ...
})

The .swal2-arabic-question-mark class was removed, use iconHtml: '؟' instead.

sweetalert2 - v8.19.0

Published by limonte almost 5 years ago

8.19.0 (2019-11-02)

Features

  • scss: add $swal2-border (0fdf5ba)
sweetalert2 - v8.18.7

Published by limonte almost 5 years ago

8.18.7 (2019-11-01)

Bug Fixes

sweetalert2 - v8.18.6

Published by limonte almost 5 years ago

8.18.6 (2019-10-23)

Bug Fixes

sweetalert2 - v8.18.5

Published by limonte about 5 years ago

8.18.5 (2019-10-18)

Bug Fixes

  • throw warning when calling update() for closing popup (#1779) (69d737e)
sweetalert2 - v8.18.4

Published by limonte about 5 years ago

8.18.4 (2019-10-16)

Bug Fixes

  • types: do not use SweetAlertArrayOptions in fire() definition (#1775) (893eee7)
sweetalert2 - v8.18.3

Published by limonte about 5 years ago

8.18.3 (2019-10-09)

Bug Fixes

sweetalert2 - v8.18.2

Published by limonte about 5 years ago

8.18.2 (2019-10-09)

Bug Fixes

  • types: getInput() returns HTMLInputElement (#1766) (c9916da)
sweetalert2 - v8.18.1

Published by limonte about 5 years ago

8.18.1 (2019-10-07)

Bug Fixes

  • get file result for multiple file type input (#1759) (cf00614)
sweetalert2 - v8.18.0

Published by limonte about 5 years ago

8.18.0 (2019-09-30)

Features

  • scss: add $swal2-close-button-font-family and $swal2-button-focus-background-color variables (#1753) (bc1da42)
sweetalert2 - v8.17.6

Published by limonte about 5 years ago

8.17.6 (2019-09-19)

Bug Fixes

  • throw warning about unexpected type of customClass (#1743) (102bd03)
sweetalert2 - v8.17.5

Published by limonte about 5 years ago

8.17.5 (2019-09-19)

Bug Fixes

sweetalert2 - v8.17.4

Published by limonte about 5 years ago

8.17.4 (2019-09-17)

Bug Fixes

  • types: title and footer can be of HTMLElement and JQuery types (b00065f)