toastr.options.js
Home
/
src /
Web /
wwwroot /
js /
toastr /
toastr.options.js
let Toast = (function (toastr) {
toastr.options.closeButton = false;
toastr.options.debug = false;
toastr.options.extendedTimeOut = 1000;
toastr.options.hideEasing = 'linear';
toastr.options.hideDuration = 1000;
toastr.options.hideMethod = 'fadeOut';
toastr.options.newestOnTop = false;
toastr.options.onclick = null;
toastr.options.positionClass = 'toast-bottom-right';
toastr.options.preventDuplicates = false;
toastr.options.progressBar = false;
toastr.options.showDuration = 300;
toastr.options.showEasing = 'swing';
toastr.options.showMethod = 'fadeIn';
toastr.options.timeOut = 5000;
function standard() {
toastr.options.closeButton = false;
toastr.options.extendedTimeOut = 1000;
toastr.options.timeOut = 5000;
};
function sticky() {
toastr.options.closeButton = true;
toastr.options.extendedTimeOut = 0;
toastr.options.timeOut = 0;
};
return {
setStandard: standard,
setSticky: sticky
};
})(window.toastr);