Use SHOW_ALERT for all type of notifications

This commit is contained in:
Paul-Vincent Roll
2016-04-03 20:28:51 +02:00
parent 7f2537f9b1
commit a55a2bcca0
2 changed files with 20 additions and 21 deletions

View File

@@ -70,11 +70,18 @@ The following properties can be configured:
## Developer notes
For notifications use:
### Display notification
```
self.sendNotification("SHOW_NOTIFICATION", {title: "Hello", message: "This is a test!"});
self.sendNotification("SHOW_ALERT", {type: "notification"});
```
For alerts use:
```
self.sendNotification("SHOW_ALERT", {type: "alert"});
```
### Notification params
<table width="100%">
<!-- why, markdown... -->
<thead>
@@ -99,10 +106,7 @@ self.sendNotification("SHOW_NOTIFICATION", {title: "Hello", message: "This is a
</tbody>
</table>
### Display alert
```
self.sendNotification("SHOW_ALERT", {title: "Hello", message: "This is a test!", imageUrl:"url", imageHeight: "30px", timer:2});
```
### Alert params
<table width="100%">
<!-- why, markdown... -->
<thead>
@@ -149,8 +153,6 @@ self.sendNotification("SHOW_ALERT", {title: "Hello", message: "This is a test!",
</tbody>
</table>
## Open Source Licenses
###[NotificationStyles](https://github.com/codrops/NotificationStyles)
See [ympanus.net](http://tympanus.net/codrops/licensing/) for license.