This is a simple global option that can be set in the same way of the other global options:
Toastify.defaults.oldestFirst = false;
Notes
Despite this PR has been working fine in my local environment, I didn't do any extensive set of tests. I'm doing this "on-demand", as I need to use a new option. I count on the contributors help for that.
Global Options and New Option
This PR adds the following features:
1 - Global Options
The global options act as the defaults for each option for the
Toastify
object. These defaults were hard-coded on the constructor.In this PR they were transferred to the
Toastify.defaults
object. The user can set them as follows:2 - Oldest First
This is a simple global option that can be set in the same way of the other global options:
Toastify.defaults.oldestFirst = false;
Notes
@apvarun