Created
February 18, 2019 01:58
-
-
Save Jhhames/e6ad559eac542927f8f1f0b535e502cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Display a warning toast, with no title | |
toastr.warning('My name is Inigo Montoya. You killed my father, prepare to die!') | |
// Display a success toast, with a title | |
toastr.success('Have fun storming the castle!', 'Miracle Max Says') | |
// Display an error toast, with a title | |
toastr.error('I do not think that word means what you think it means.', 'Inconceivable!') | |
// Immediately remove current toasts without using animation | |
toastr.remove() | |
// Remove current toasts using animation | |
toastr.clear() | |
// Override global options | |
toastr.success('We do have the Kapua suite available.', 'Turtle Bay Resort', {timeOut: 5000}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment