- Add /dist again for bower.
- Fix wrong z-index in production build.
- Add refreshTimer method to refresh the timeout of shown toasts.
Not the promised version, but should help with some unwanted bugs.
replace: true
has been removed from the directives.- Preserve
margin-bottom
of each toasts.
BREAKING CHANGE:
replace: true
has been removed. If you use a custom template, you will probably need to do
some CSS changes. On the good part, it should help with some bugs.
toastr
service has anactive()
method to get all the opened toasts.
- onTap callback receives the whole toast as the first parameter.
- onShown callback receives the whole toast as the first parameter.
- onHidden callback receives the whole toast as the second parameter.
- Fix an issue where
maxOpened
with 2 or more was conflicting withautoDismiss
. - Fix that when you try to close an undefined toast it won't close them all.
- Toasts should be now more accessible.
- You can now pass custom data to templates, useful for custom templates
- New callback,
onTap
which is called when you click a toast (doesn't have to be closed for it to work). - Fix
onHidden
to have thewasClicked
parameter to true when using a toast close button.
- Fix a typo on the toastr.less file that prevented some automated tools to work.
- Add the license to bower.json.
- With
preventOpenDuplicates
you can prevent duplicates of opened toasts. - Webpack / Browserify support.
- Now the bower package won't try to fetch the latest angular version.
- Add compatibility with
Angular 1.4.x
.
- An
autoDismiss
option to be used withmaxOpened
to dismiss the oldest toast. - Every toast has now an
isOpened
property to see whether they are opened or not.
- Remove a nasty console.log from the progress bar (yikes!).
- Support for a progress bar.
- A config option to change the path of the templates.
BREAKING CHANGE:
If you were using a custom template using the default path, it changed from:
templates/toastr/toastr.html
to
directives/toast/toast.html
- Now you can prevent the last toast from being duplicated setting
preventDuplicates
to true. - Fix toasts options not working if the title parameter is set to null.
- Prevent toasts to override global options.
- Fixed an issue where it wouldn't work anymore without
ngAnimate
.
- Hotfix for npm package.
- No changes since last beta
- Be able to specify a concrete target for container.
- Using $injector internally to avoid circular dependencies.
- onHidden receives a parameter to see whether a toast was closed by timeout or click.
- Fix an issue with toasts not closing up.
- Fix maxOpened. Now toasts are queued when the max is reached.
- Maximum opened toasts can be limited now.
- Allows to attach an
onShown
andonHidden
callback. - Allows toasts to override options without title 9013c4d
- Removed the support for IE 8 (in terms of CSS)
- Changed
$timeout
to$interval
so protractor tests won't fail.
- newestOnTop, with that you can choose whether to add new toasts on the top or bottom. Top by default.
- Angular 1.3.x support
- You can add HTML on the toastr titles.
- You can now override the toast's template.
- Fix issue using toastr with ionic.
- Now the toasts supports a close button.
- Be able to disable to close on click.
- Fixes #2 where a toast could remain open for all eternity.
- You can make an sticky toast if you set the
timeOut
to 0. If you also setextendedTimeOut
to 0 the sticky won't go away until you click on them. - Toasts accept custom HTML into them!
- Animations are now optional
- Removed the possibility to add the toast container where you want to (that will be back in a future)
- The
close
method has been renamed toclear
to match the original API
- Initial release