Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to change text color sweet alert IN JS

swal({
    title: "Are you sure?",
    text: "You will not be able to recover this imaginary file!",
    type: "warning",
    showCancelButton: true,
    cancelButtonColor: "#DD6B55",
    confirmButtonColor: "#DD6B55",
    confirmButtonText: "Yes, delete it!",
    cancelButtonText: "No, cancel please!",
    closeOnConfirm: false,
    closeOnCancel: false
}, 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 :: new variable in loop javascript 
Javascript :: js caps first letter 
Javascript :: javascript object 
Javascript :: ejs include with variable 
Javascript :: useref() in react 
Javascript :: javascript test is not a function 
Javascript :: settimeout javascript 
Javascript :: Orderby on multiple columns using typeorm 
Javascript :: svg component react js 
Javascript :: count vowels in a string javascript 
Javascript :: angular animation scale width and height 
Javascript :: class component react js 
Javascript :: jquery download 
Javascript :: how to flat an array in javascript recursively 
Javascript :: discord.js start 
Javascript :: check / unchecked a checkbox with jQuery 
Javascript :: send mail in node js without password 
Javascript :: axios error message 
Javascript :: $unset mongodb 
Javascript :: js import and export 
Javascript :: javascript resize window 
Javascript :: js input trigger oninput event 
Javascript :: array json 
Javascript :: nodejs read image as base64 
Javascript :: how to change the first 3 letters from a string toupper case 
Javascript :: js unique string array 
Javascript :: express post not working 
Javascript :: js push array to array 
Javascript :: aggregate mongodb 
Javascript :: int to string javascript 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =