Skip to content

Commit b32642a

Browse files
committed
Add active docs on readme
1 parent e4ee88e commit b32642a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,16 @@ app.controller('foo', function($scope, toastr) {
101101

102102
If no toast is passed in, all toasts will be closed.
103103

104+
#### Getting active (open) toasts:
105+
106+
```javascript
107+
app.controller('foo', function($scope, toastr) {
108+
toastr.active();
109+
});
110+
```
111+
112+
It return the number of active toasts in screen.
113+
104114
#### Other options
105115

106116
A toast has a `isOpened` flag to see whether it is opened or not.

0 commit comments

Comments
 (0)