cluedin-widget
Version:
This project contains all the pages needed for browsing entities and searching them. The aim is to replace the CluedIn.Webapp project with this one when all the pages ( including the Admin page ) will be ported to REACT.
19 lines (13 loc) • 497 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 } });
__cluedIn.mainElement.dispatchEvent(follow);
};
window.__cluedIn.dispatchUnFollow = (entity) => {
var unfollow = new CustomEvent('unfollow', { detail: { entity } });
__cluedIn.mainElement.dispatchEvent(unfollow);
};