「Ok」ボタンを「Select patient」および「Cancel」から「Speed case」に変更したい。どうやってやるの?
swal({
text: "Start new case by",
buttons: true,
confirmButtonText: "Select Patient?",
cancelButtonText: "Speed Case?",
});
swal({
text: "Start new case by",
buttons: ["Select Patient?", "Speed Case?"],
});
ここに答えがあります
swal({
title: "Are you sure?",
text: "you want to Cancel Operation!",
type: "warning",
showCancelButton: true,
confirmButtonColor: '#DD6B55',
confirmButtonText: 'Yes, I am sure!',
cancelButtonText: "No, cancel it!",
closeOnConfirm: false,
closeOnCancel: false
},
それがあなたのために働くことを願っています
swal({
title: 'Are you sure?',
text: 'Once deleted, you will not be able to recover this imaginary file!',
icon: 'warning',
buttons: true,
dangerMode: true,
buttons: ['yes, forsure', 'no, thanks']
});