Closed virgiliogm closed 4 years ago
Hi @VirgilioGM
Firstly thanks for using the Notiflix.
It would be nice as you said. I will create a solution as you suggested asap.
Thank you.
Hi @VirgilioGM
Notiflix v2.3.0 just released.
You can use custom options for each Notify or Report module elements now.
Thanks.
Wow! I'm very happy that you took my suggestion into account and implemented the changes so quickly. Thank you very much!
I'm facing a problem: I initialize the Notify component globally for my application but I need to use specific settings for certain messages. Using Merge is not an option because that overrides the global settings and I realized that it would be great and not a hard work to allow to pass an options object for a specific message. I did a test for Notify.Info but the changes could easily be applied to all functions:
After that, it is possible to do something like this:
This way, the first and second messages will use the default timeout of 3 seconds but the important one will stay visible for 10 seconds.