“sweetalert2 js” Kode Jawaban

instal sweetalert2

npm install --save sweetalert2
Excited Eel

Jenis Api Sentang

swal({
  title: "Are you sure?",
  text: "Your will not be able to recover this imaginary file!",
  type: "danger",
  showCancelButton: true,
  confirmButtonClass: "btn-danger",
  confirmButtonText: "Yes, delete it!",
  closeOnConfirm: false
},
function(){
  swal("Deleted!", "Your imaginary file has been deleted.", "success");
});
Worrisome Whale

sweetalert2

$ npm install sweetalert2
Elegant Eel

Dokumentasi Sweetalert 2

Swal.fire({
  title: 'Error!',
  text: 'Do you want to continue',
  icon: 'error',
  confirmButtonText: 'Cool'
})
Disturbed Dogfish

sweetalert2

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

sweetalert2 js

<link href="//cdn.jsdelivr.net/npm/@sweetalert2/theme-dark@4/dark.css" rel="stylesheet">
<script src="//cdn.jsdelivr.net/npm/sweetalert2@10/dist/sweetalert2.min.js"></script>
Relieved Rattlesnake

Jawaban yang mirip dengan “sweetalert2 js”

Pertanyaan yang mirip dengan “sweetalert2 js”

Lebih banyak jawaban terkait untuk “sweetalert2 js” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya