six-favorites-manager
v1.0.7
Published
A component that provides support for the /favorites API to widgets
Downloads
14
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'})