Skip to content

Conversation

@mbrewerton
Copy link

Adds the ability to specifiy a default title per toast type in the options:

toastr.options.successTitle = 'Success!';
toastr.options.errorTitle = Error!';
toastr.options.warningTitle = 'Warning!';
toastr.options.infoTitle ='Info!';

If you pass a title to the toast, toastr.success('My successful toast message', 'Custom Success Title'); it will override the default title.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant