six-alerts-manager

A component that provides support for the /alerts API to widgets

Usage no npm install needed!

<script type="module">
  import sixAlertsManager from 'https://cdn.skypack.dev/six-alerts-manager';
</script>

README

Provides support for /alerts to widgets

  • Must be initialized before any widgets on page

Usage

NPM

# npm install six-alerts-manager
import AlertsManager from 'six-alerts-manager'

// initialize with session from SDK and an userId
AlertsManager(session,{userId: '1884C0B8-C22A-4B7A-9DB3-A9AB4F8A45B6'})

CDN

<script type="text/javascript" src="https://cdn.six.se/js/six-alerts-manager/0/six-alerts-manager.min.js" />

// initialize with session from SDK and an userId
Six.Components.AlertsManager(session,{userId: '1884C0B8-C22A-4B7A-9DB3-A9AB4F8A45B6'})