Phoenix live views for notified
Add the notified_phoenix
package to your list of dependencies in mix.exs
:
def deps do
[
{:notified_phoenix, "~> 0.0.6"}
]
end
<%= live_render(@socket, NotifiedPhoenix.BadgeLive, [] %>
<%= live_render(@socket, NotifiedPhoenix.ListLive, class: "my-custom-style" %>
NotifiedPhoenix
ships with extra receivers that can be used within modern web browsers
NotifiedPhoenix.Receivers.Speech
- Uses the experimental SpeechSynthesis API to read the subject of the notificationNotifiedPhoenix.Receivers.BrowserNotification
- Uses the browsers native Notification API to display a notification on the host system
config :notified, receivers: [
{NotifiedPhoenix.Receivers.Speech, []}
{NotifiedPhoenix.Receivers.BrowserNotification, []}
]
- Alex Kwiatkowski - alex+git@fremantle.io
notified_phoenix
is released under the MIT license