toastr
1.3.1
toastr
John Papa,Hans Fjällemark
John Papa,Hans Fjällemark
http://www.opensource.org/licenses/mit-license.php
https://github.com/CodeSeven/toastr
http://johnpapa.net/wp-content/images/toastr-icon.png
false
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
toastr is a Javascript library for Gnome / Growl type non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.
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.
Copyright © 2012 Hans Fjällemark & John Papa.
en-US
toastr, toast, notification, dialog, jquery