Hello,
In Laravel code, there is toastr on success and error msg,
I want to customise this toastr style,
Where is that html?
```
<script>
document.addEventListener('livewire:init', () => {
Livewire.on('success', (message) => {
toastr.success(message);
});
Livewire.on('error', (message) => {
toastr.error(message);
});
Livewire.on('swal', (message, icon, confirmButtonText) => {
if (typeof icon === 'undefined') {
icon = 'success';
}
if (typeof confirmButtonText === 'undefined') {
confirmButtonText = 'Ok, got it!';
}
Swal.fire({
text: message,
icon: icon,
buttonsStyling: false,
confirmButtonText: confirmButtonText,
customClass: {
confirmButton: 'btn btn-primary'
}
});
});
});
</script>
```
Hi Jigar Patel,
Sorry for the late reply. The Toastr plugin comes directly from the Toastr library and is located here:
/resources/_keenthemes/src/plugins/toastr/build
You can modify the Toastr options like this:
toastr.options = {
"closeButton": true,
"debug": false,
"newestOnTop": false,
"progressBar": false,
"positionClass": "toast-top-right",
"preventDuplicates": false,
"showDuration": "300",
"hideDuration": "1000",
"timeOut": "5000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
};
toastr.success("File manager settings have been saved");