วันอังคารที่ 27 ตุลาคม พ.ศ. 2563

sweetalert2 show iframe disable "ok button" and "don't click outsize "


 swal.fire({ 

title:'เพิ่มวันหยุดประจำปี',

    width: 600,

  showCloseButton: true, //  show button X on top left

  showCancelButton: false,    /// show cancel

  showConfirmButton: false,  ///  show ok button

  allowOutsideClick: false,  /// don't click outsize

  onClose: Refreshs,     /// event on close 

    html: '<iframe src="holiday.php?_method=POST&date='+date+'" width="100%" height="500" src="" ></iframe>',

 }) ;


 function Refreshs() {

 

window.location.reload();

 }