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
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -16,3 +16,7 @@ var hello = new Notif({ text: 'Hello! This is a test message.' }); // shows the
16
16
hello.close(); // removes the notification from the dom
17
17
hello.show(); // renders and shows the notification again
18
18
```
19
+
20
+
```js
21
+
var helloAgain =newNotif({ text:'A slightly more advanced message.' }).close({ duration:3000 }); // renders and shows the notification, then waits 3000 ms and closes the message
0 commit comments