You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-7Lines changed: 23 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,9 @@ AngularJS-Toaster
4
4
**AngularJS Toaster** is an AngularJS port of the **toastr** non-blocking notification jQuery library. It requires AngularJS v1.2.6 or higher and angular-animate for the CSS3 transformations.
@@ -191,17 +191,33 @@ All four options can be configured either globally for all toasts or individuall
191
191
});
192
192
```
193
193
194
+
### On Show Callback
195
+
An onShow callback function can be attached to each toast instance. The callback will be invoked upon toast add.
196
+
197
+
```js
198
+
toaster.pop({
199
+
title: 'A toast',
200
+
body: 'with an onShow callback',
201
+
onShowCallback: function () {
202
+
toaster.pop({
203
+
title: 'A toast',
204
+
body: 'invoked as an onShow callback'
205
+
});
206
+
}
207
+
});
208
+
```
209
+
194
210
### On Hide Callback
195
-
A callback function can be attached to each toast instance. The callback will be invoked upon toast removal. This can be used to chain toast calls.
211
+
An onHide callback function can be attached to each toast instance. The callback will be invoked upon toast removal. This can be used to chain toast calls.
0 commit comments