Reputation: 8109
I can use custom values for showing a toastr
. Also, checked-out this question's answers. Toastr JS Setting fadeAway value
But, my question is that is there any way i can override toastr
's default options once which will be applicable to my whole project.
for example, I want "timeOut": "2500"
to be set for my whole project only mentioning it only once, instead of default "timeOut": "5000"
.
Upvotes: 1
Views: 877
Reputation: 7065
You can make a small change in the toastr.js
file.
Go to: getDefaults()
method in toastr.js
file.
And change the timeOut: 5000,
to timeOut: 2500,
Does that make sense?
Upvotes: 0