cluedin-widget
Version:
This is the project for creating and managing widgets in CluedIn.
18 lines (13 loc) • 544 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 CustomEvent( 'follow', { detail: { 'entity': entity } } );
__cluedIn.mainElement.dispatchEvent( follow );
};
window.__cluedIn.dispatchUnFollow = ( entity ) => {
var unfollow = new CustomEvent( 'unfollow', { detail: { 'entity': entity } } );
__cluedIn.mainElement.dispatchEvent( unfollow );
};