showing results for - "how to change text color sweet alert in js"
Laura
12 Jun 2018
1swal({
2    title: "Are you sure?",
3    text: "You will not be able to recover this imaginary file!",
4    type: "warning",
5    showCancelButton: true,
6    cancelButtonColor: "#DD6B55",
7    confirmButtonColor: "#DD6B55",
8    confirmButtonText: "Yes, delete it!",
9    cancelButtonText: "No, cancel please!",
10    closeOnConfirm: false,
11    closeOnCancel: false
12}, function (isConfirm) {
13    if (isConfirm) {
14        swal("Deleted!", "Your imaginary file has been deleted.", "success");
15    } else {
16        swal("Cancelled", "Your imaginary file is safe :)", "error");
17    }
18});
19