IT:AD:Toastr:HowTo:Download and Install
Summary
Process
- Download the script and accompanying css from:
* Install it into your SPA/:
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
<link href="toastr.css" rel="stylesheet" type="text/css" />
- Initialize
toastrby setting the following options somewhere early in the page lifecycle:
toastr.options = {
"debug": false,
"positionClass": "toast-top-right",
"onclick": null,
"fadeIn": 300,
"fadeOut": 1000,
"timeOut": 5000,
"extendedTimeOut": 1000
}
Bang away using the basic api.