let mySwal = Swal.mixin({
confirmButtonColor:'green',
confirmButtonText:'Save',
showCancelButton:true,
cancelButtonText:'No',
cancelButtonColor: 'red',
showDenyButton:true,
denyButtonText:'Deny',
denyButtonColor:'orange'
});
mySwal.fire(
'Message Title',
'Message Text',
'info' // icons: 'error','info','warning','success'
).then((swal)=>{
if(swal.isConfirmed){
// Your Code Here
}
else if(swal.isDenied){
// Your Code Here
}
else if(swal.isDismissed){
// Your Code Here
}
else{
// Your Code Here
}
});
Code Example |
---|
Javascript :: how to set javascript load order in html |
:: |
:: |
:: |
Javascript :: Backbone Router Notes |
:: angular file upload code anji |
:: React Futures - Server Components |
Javascript :: |
Javascript :: |
Javascript :: |
Javascript :: var date = new Date(); |
Javascript :: anonymous function js |
Javascript :: javascript declare multiple variables on one line |
Javascript :: |
:: change string to int javascript |
Javascript :: math.ceil node js |
Javascript :: button prevent default |
Javascript :: |
Javascript :: how to focus out of an input in testing library |
Javascript :: |
Javascript :: how to run react app on apache server |
Javascript :: |
Javascript :: |
Javascript :: javascript Undeclared objects are not allowed |
:: |
:: convert string to slug javascript |
:: |
Javascript :: |
:: |
:: |