ui-notifier
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "ui-notifier", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "mihnsen", |
@@ -106,19 +106,3 @@ ui-notifier ([live demo](http://mihnsen.github.io/ui-notifier/)) [](https://travis-ci.org/mihnsen/ui-notifier) [](https://codeclimate.com/github/mihnsen/ui-notifier) | ||
This will give the user the option of closing the notification themselves. If you need to dismiss a notification manually, you can do so with the `dismiss` method like this: | ||
```javascript | ||
uiNotifier.dismiss(); | ||
``` | ||
If you'd prefer to dismiss the notification programmatically and prevent the user from doing so, you can add an option to remove the button: | ||
```javascript | ||
uiNotifier.set('This is sticky without a button.', { | ||
sticky: true, | ||
button: false | ||
}); | ||
``` | ||
*Any time a notification is set to sticky, the duration attribute will be ignored since the notification will not be automatically fading out.* | ||
### HTML Notifications | ||
@@ -125,0 +109,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
151294
278