Crvi/assets/js/modules/agenda-notifications.js
2026-01-20 07:54:37 +01:00

25 lines
533 B
JavaScript

// Module ES6 pour la gestion des notifications Toastr
export function notifySuccess(message) {
toastr.success(message);
}
export function notifyError(message) {
toastr.error(message);
}
export function notifyInfo(message) {
toastr.info(message);
}
export function notifyWarning(message) {
toastr.warning(message);
}
export function configureToastr() {
toastr.options = {
"closeButton": true,
"progressBar": true,
"positionClass": "toast-top-right",
"timeOut": "5000"
};
}