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
<PackageReference Include="toastr" Version="1.3.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add toastr --version 1.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: toastr, 1.3.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install toastr as a Cake Addin
#addin nuget:?package=toastr&version=1.3.1

// Install toastr as a Cake Tool
#tool nuget:?package=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.

NuGet packages

This package is not used by any NuGet packages.

Version History

Version Downloads Last updated
2.0.3 0 06.02.2022
2.0.2 0 06.02.2022
2.0.1 0 06.02.2022
2.0.0-rc1 0 06.02.2022
1.3.1 0 06.02.2022
1.3.0 0 06.02.2022
1.2.2 0 06.02.2022
1.2.1 0 06.02.2022
1.2.0 0 06.02.2022
1.1.5 0 06.02.2022
1.1.4.2 0 06.02.2022
1.1.4.1 0 06.02.2022
1.1.4 0 06.02.2022
1.1.3 0 06.02.2022
1.1.2 0 06.02.2022
1.1.1 0 06.02.2022
1.1.0 0 06.02.2022
1.0.3 0 06.02.2022
1.0.2 0 06.02.2022
1.0.1 0 06.02.2022
1.0.0 0 06.02.2022