✨ A beautiful, responsive, highly customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes. Zero dependencies. 🇺🇦
MIT License
Bot releases are hidden (Show)
Published by limonte over 3 years ago
If you need to support these old browsers in your project, please use the previous major release v10.16.7
.queue()
, .getQueueStep()
, .insertQueueStep()
, .deleteQueueStep()
methods are REMOVEDasync/await
can perfectly replace all use-cases of .queue()
.
Replace them with new ones:
onBeforeOpen
-> willOpen
onOpen
-> didOpen
onRender
-> didRender
onClose
-> willClose
onAfterClose
-> didClose
onDestroy
-> didDestroy
animation
param is REMOVEDUse showClass
and hideClass
instead:
Swal.fire({
...
showClass: {
backdrop: 'swal2-noanimation', // disable backdrop animation
popup: '', // disable popup animation
icon: '' // disable icon animation
},
hideClass: {
popup: '', // disable popup fade-out animation
},
})
.swal2-header
and .swal2-content
blocks and related methods .getHeader()
and .getContent()
are REMOVEDUse these alternatives instead:
.getHeader()
-> .getTitle()
.getContent()
-> .getHtmlContainer()
Before | After |
---|---|
CSS Grid provides much more possibilities for reordering elements inside a popup.