You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Under Toastr customization, regarding passing custom options to an individual toast message call, it says:
The second option is to pass a third parameter (or second if you don't need a title). Let see some examples:
However, my testing confirms that this is not the case. If a title is omitted and the options object is passed as the second argument, it is ignored. If a title is not desired, the workaround is to pass an empty string.
I think passing an empty string is perfectly fine, I just wanted to note that, assuming I'm correct, the documentation should be slightly tweaked.
Thank you for this project! It is very helpful.
The text was updated successfully, but these errors were encountered:
BotchTheCrab
changed the title
Second options is necessary in order for options to be read
Second argument is necessary in order for options to be read
Oct 27, 2021
Under Toastr customization, regarding passing custom options to an individual toast message call, it says:
However, my testing confirms that this is not the case. If a title is omitted and the options object is passed as the second argument, it is ignored. If a title is not desired, the workaround is to pass an empty string.
I think passing an empty string is perfectly fine, I just wanted to note that, assuming I'm correct, the documentation should be slightly tweaked.
Thank you for this project! It is very helpful.
The text was updated successfully, but these errors were encountered: