sweet alert js
swal({
title: "Deleted!",
text: "Your row has been deleted.",
button: "Close", // Text on button
icon: "success", //built in icons: success, warning, error, info
timer: 3000, //timeOut for auto-close
buttons: {
confirm: {
text: "OK",
value: true,
visible: true,
className: "",
closeModal: true
},
cancel: {
text: "Cancel",
value: false,
visible: true,
className: "",
closeModal: true,
}
}
});<script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script>swal("Good job!", "You clicked the button!", "error");Swal.fire({
title: 'example text',
buttonsStyling: false,
customClass: {
confirmButton: 'example-class' //insert class here
}
})Swal.fire( 'Good job!', 'You clicked the button!', 'success')<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
Also in JavaScript:
- javascript remove first space in string
- program to parenthesize an expression
- caesar cipher
- props and state react
- how to remove first element of array in javascript
- react history listen get previous location
- load js
- merge two strings with alternate characters javascript
- detect if user is online react
- disable yellow box react native
- angular interview questions
- clear input field jquery
- switch javascript
- input output ionic
- random number generator js
- jquery visibility hidden show
- rounding up a number so that it is divisible by 5 javascript
- check if object has method javascript
- react native navigation shared element
- push array javascript
- javascript check if text is overflowing
- get value from textbox in vanilla javascript
- jquery disable keypress
- palindrome string js