sweet alert current version code example
Example 1: sweet alert bootstrap
Swal.fire({ icon: 'success', title: 'Oops...', text: 'Something went wrong!', footer: 'Why do I have this issue?'})
Example 2: sweetalert
Swal.fire({ title: 'HTML example', icon: 'info', html: 'You can use bold text, ' + 'links ' + 'and other HTML tags', showCloseButton: true, showCancelButton: true, focusConfirm: false, confirmButtonText: ' Great!', confirmButtonAriaLabel: 'Thumbs up, great!', cancelButtonText: '', cancelButtonAriaLabel: 'Thumbs down'})