Skip to content

Second argument is necessary in order for options to be read #244

@BotchTheCrab

Description

@BotchTheCrab

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions