Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

sweetalert button color

swal({   
title: "Are you sure?",   
   text: "You will not be able to recover this imaginary file!",   
   type: "warning",   
   showCancelButton: true,      
   confirmButtonColor: "#DD6B55",   
   confirmButtonText: "Yes, delete it!",   
   cancelButtonText: "No, cancel plx!",   
   closeOnConfirm: false,   
   closeOnCancel: false,
   customClass: "Custom_Cancel"
}, 
function(isConfirm){   
   if (isConfirm) {     
      swal("Deleted!", "Your imaginary file has been deleted.", "success");   
   } else {     
      swal("Cancelled", "Your imaginary file is safe :)", "error");   
   } 
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: js alert and redirect 
Javascript :: jquery radio button click event 
Javascript :: call a function when page loads javascript 
Javascript :: make minutes have 0 in javascript 
Javascript :: js wait sleep 
Javascript :: sanity install 
Javascript :: js for each character in string 
Javascript :: js get numbers only 
Javascript :: ajax header 
Javascript :: js root url 
Javascript :: devextreme datagrid get selected row keys 
Javascript :: javascript move element in array to end 
Javascript :: javascrip reverse text 
Javascript :: remove special characters regular expression 
Javascript :: change attribute 
Javascript :: CLEAR FORM using jquery 
Javascript :: set width of jqgrid 
Javascript :: write to file js 
Javascript :: react get route path 
Javascript :: js check if date is today 
Javascript :: javascript get month name 
Javascript :: js object length 
Javascript :: vue npx 
Javascript :: email regex specific domain simple 
Javascript :: how to remove a class from element with javascript 
Javascript :: cep validator js 
Javascript :: primera letra en mayuscula javascript 
Javascript :: how to change my npm version 
Javascript :: jquery remove option from select by value 
Javascript :: js sync delay 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =