Розмір відео: 1280 X 720853 X 480640 X 360
Показувати елементи керування програвачем
Автоматичне відтворення
Автоповтор
Thank you for your video, do ou think you could upload a video using sweet alert implementing the function and id in a CRUD
thank you so so much for your tutor video, its useful
Glad it was helpful!
How to pass id for record deletion? Thanks.
Can I know how to pass post id via sweetalert to component for record deletion?
... function handleClick(id) { const swalWithBootstrapButtons = Swal.mixin({ customClass: { confirmButton: "btn btn-success", cancelButton: "btn btn-danger" }, buttonsStyling: false }); swalWithBootstrapButtons.fire({ title: "Are you sure?", text: "You won't be able to revert this!", icon: "warning", showCancelButton: true, confirmButtonText: "Yes, delete it!", cancelButtonText: "No, cancel!", reverseButtons: true }).then((result) => { if (result.isConfirmed) { @this.dispatch('goOn-delete', { id: id }); } else if ( result.dismiss === Swal.DismissReason.cancel ) { swalWithBootstrapButtons.fire({ title: "Cancelled", text: "Your imaginary file is safe :)", icon: "error" }); } }); }
Thank you for your video, do ou think you could upload a video using sweet alert implementing the function and id in a CRUD
thank you so so much for your tutor video, its useful
Glad it was helpful!
How to pass id for record deletion? Thanks.
Can I know how to pass post id via sweetalert to component for record deletion?
...
function handleClick(id) {
const swalWithBootstrapButtons = Swal.mixin({
customClass: {
confirmButton: "btn btn-success",
cancelButton: "btn btn-danger"
},
buttonsStyling: false
});
swalWithBootstrapButtons.fire({
title: "Are you sure?",
text: "You won't be able to revert this!",
icon: "warning",
showCancelButton: true,
confirmButtonText: "Yes, delete it!",
cancelButtonText: "No, cancel!",
reverseButtons: true
}).then((result) => {
if (result.isConfirmed) {
@this.dispatch('goOn-delete', {
id: id
});
} else if (
result.dismiss === Swal.DismissReason.cancel
) {
swalWithBootstrapButtons.fire({
title: "Cancelled",
text: "Your imaginary file is safe :)",
icon: "error"
});
}
});
}