Skip to content

Commit bd1a095

Browse files
committed
chore(release): release 0.2.0
1 parent fefec8c commit bd1a095

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## Version 0.2.0
4+
5+
- You can make an sticky toast if you set the `timeOut` to 0. If you also set `extendedTimeOut` to 0 the sticky won't go away until you click on them.
6+
- Toasts accept custom HTML into them!
7+
38
## Version 0.1.2
49

510
- Animations are now optional

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ You can customize the entire library like:
9494

9595
```javascript
9696
app.config(function(toastrConfig) {
97+
allowHtml: true,
9798
containerId: 'toast-container',
9899
extendedTimeOut: 1000,
99100
iconClasses: {
@@ -112,6 +113,7 @@ app.config(function(toastrConfig) {
112113

113114
Those are the default values, you can pick what you need from it and override with your values.
114115

116+
* **allowHtml**: Your toast can use custom HTML here (See [Issue 3]())
115117
* **containerId**: The name of the container where you want to append your toasts (the container will be created for you).
116118
* **extendedTimeOut**: The timeout after you hover a toast.
117119
* **iconClasses**: The default type classes for the different toasts.
@@ -123,6 +125,18 @@ Those are the default values, you can pick what you need from it and override wi
123125

124126
You can also override options per toast, for example:
125127

128+
Toast with custom HTML:
129+
130+
```javascript
131+
app.controller('foo', function($scope, toastr) {
132+
toastr.info('<input type="checkbox" checked> Success!', 'With HTML', {
133+
allowHtml: true
134+
});
135+
});
136+
```
137+
138+
![Html Image](http://i.imgur.com/mvz6wcW.png)
139+
126140
A pinky custom style (you can also create here new types with `$decorate`):
127141

128142
```javascript

0 commit comments

Comments
 (0)