Hello, i have a problem, i want to make a sweetalert to be draggable in everywhere the window. But how could i do it ? Have tried with simple popup and it works simply. But how a bout sweetalert ? thanksss
Here’s my code .
swal({title:"Konfirmasi Batal KYC!",
text:"Apakah Anda yakin membatalkan KYC?",
input: 'select',
inputOptions: {
'1': 'Data tidak sesuai',
'2': 'Data tidak lengkap',
'3': 'Data tidak jelas'
},
type:"warning",
showCancelButton:!0,
confirmButtonColor:"#DD6B55",
confirmButtonText:"Yes",
cancelButtonText:"No",
closeOnConfirm:!1,
closeOnCancel:!1,
confirmButtonColor:"#f60e0e"},
function(t){t?
swal({
title: "",
text: "Keterangan",
type: "input",
showCancelButton: true,
closeOnConfirm: false,
animation: "slide-from-top",
inputPlaceholder: "Keterangan"
},
function(inputValue){
if (inputValue === false) return false;
if (inputValue === "") {
swal.showInputError("Keterangan belum diisi");
return false;
}else{
S_notes = inputValue;
cancelKYC(ewalletcode,S_notes);
}
})
:
swal({title:"Batal",
text:"Anda batal melakukan pembatalan KYC.)",
type:"error",
confirmButtonColor:"#f60e0e"})
});