six-favorites-manager

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

Usage no npm install needed!

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

README

Provides support for /favorites to widgets

  • Must be initialized before any widgets on page

Usage

NPM

# npm install six-favorites-manager
import FavoritesManager from 'six-favorites-manager'

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

CDN

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

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