Skip to content

A notification manager used to create notifications to be shown to the user. ๐Ÿ†’

Notifications You must be signed in to change notification settings

sharedlabs/notification-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

notification-manager

A notification manager used to create notifications to be shown to the user.

How it works

Append the notification-manager element anywhere in the dom. By default it will listen to all notify events up to the document.

<notification-manager></notification-manager>

Then use javascript to dispatch notify events.

const notifyEvent = new CustomEvent('notify-error', {
  bubbles: true,
  detail: {
    text: 'Error message',
    duration: Infinity
  },
  bubbles: true,
  composed: true  
});

this.dispatchEvent(notifyEvent);

Event listen

notify-error notify-warning notify-info notify-success

About

A notification manager used to create notifications to be shown to the user. ๐Ÿ†’

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages