Skip to content

Instantly share code, notes, and snippets.

@rwaddin
Created May 19, 2020 05:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwaddin/5b098948a6ceb2508639f2940afa5054 to your computer and use it in GitHub Desktop.
Save rwaddin/5b098948a6ceb2508639f2940afa5054 to your computer and use it in GitHub Desktop.
Use sweetalert confirm in v 7x. if you use sweetalert v8x must use Swal.fire()
swal({title:"Sukses", text :"Setting berhasil dihapus", type : "success", showCancelButton : true}).then((result)=>{
if (result.value) {
location.reload();
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment