Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Adds a notification user exercise #454

Merged
merged 1 commit into from
Jun 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions docs/notifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,44 @@ Action buttons can also be used to call more attention to the `actionURL`.
- **url**: A url for the action
- **target** (*optional*): The `target` attribute for the button's `<a>` tag (ex. "_blank", "_self", etc)

### Notification Exercise
Follow these steps to create a notification.

1. Add a notification to
[uw-frame-components/staticFeeds/notifications.json](https://github.com/UW-Madison-DoIT/uw-frame/blob/master/uw-frame-components/staticFeeds/notifications.json)

you can use this json

```json
{
"id": 1,
"groups" : ["Everyone"],
"title" : "Learn how to create a notification",
"actionURL" : "http://uw-madison-doit.github.io/uw-frame/notifications.html",
"actionAlt" : "notification documentation",
"dismissable" : true,
"priority" : false
}
```

the file will look similar to this

```json
{"notifications" :
[
{
"id": 1,
"groups" : ["Everyone"],
"title" : "Learn how to create a notification",
"actionURL" : "http://uw-madison-doit.github.io/uw-frame/notifications.html",
"actionAlt" : "notification documentation",
"dismissable" : true,
"priority" : false
}
]
}
```
2. [Start frame](quickstart.md)

3. Try changing some of the options like making it a priority notification
or undismissable
1 change: 0 additions & 1 deletion uw-frame-components/staticFeeds/notifications.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{"notifications" :
[

]
}