cluedin-widget
Version:
This is the project for creating and managing widgets in CluedIn.
18 lines (13 loc) • 508 B
JavaScript
window.__cluedIn = window.__cluedIn || {};
window.__cluedIn.mainElement = document;
window.__cluedIn.events = {
destroy: new Event( 'cluedIn_destroy' )
};
window.__cluedIn.dispatchFollow = ( entity ) => {
var follow = new Event( 'follow', { 'entity': entity } );
__cluedIn.mainElement.dispatchEvent( follow );
};
window.__cluedIn.dispatchUnFollow = ( entity ) => {
var unfollow = new Event( 'unfollow', { 'entity': entity } );
__cluedIn.mainElement.dispatchEvent( unfollow );
};