toastr 1.3.1

3 Easy Steps:

(1) Link to toastr.css  
(2) Link to toastr.js
(3) Use toastr to display a toast for info, success, warning or error

// Display an info toast with no title
toastr.info('Are you the 6 fingered man?')

*** For other API calls, see the demo

There is a newer version of this package available.
See the version list below for details.
Install-Package toastr -Version 1.3.1
dotnet add package toastr --version 1.3.1
paket add toastr --version 1.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

v.1.3.1
Added new API for toastr.subscribe so you can be alerted when toasts appear and disappear.

toastr.subscribe(function (args) {
   // args contains the toast options and data
}

Added support for glimpse.toastr.js plugin. https://github.com/johnpapa/glimpse.toastr

Added toastId, state (visible/hidden),  startTime and endTime to the toastr info response (available in the coneol, glimpse.toastr plugin, or via the subscribe callback).

Fixed bug with stacking toasts when clear all toasts occurs first.

v1.2.2

Added onFadeIn and onFadeOut callbacks.
 toastr.options.onFadeIn = function() { console.log('hello'); }
Added option <code>newestOnTop</code> to show toasts in oldest or newest first order.
 toastr.options.newestOnTop = false;
Fixed margins on full width toasts
Added LESS file.
Added min file for JS and CSS
Added missing vendor prefixes in CSS.
Various minor bug fixes.
Added unit tests for new features.

Version History

Version Downloads Last updated
2.1.1 976,166 3/13/2015
2.1.0 84,382 11/15/2014
2.0.3 229,277 5/17/2014
2.0.2 13,147 4/29/2014
2.0.1 199,679 9/11/2013
1.3.1 50,661 6/4/2013
1.3.0 15,634 5/9/2013
1.2.2 52,030 3/1/2013
1.1.4.2 4,916 2/5/2013
1.1.3 1,186 2/2/2013
1.1.2 16,338 12/24/2012
1.1.1 9,252 11/8/2012
1.0.3 1,357 11/8/2012
1.0.2 7,246 7/25/2012
1.0.1 411 7/23/2012
1.0.0 880 5/13/2012
1.0.0-beta3 358 5/2/2012
1.0.0-beta 347 5/1/2012
Show less