sparnatural
Version:
Visual client-side SPARQL query builder and knowledge graph exploration tool
12 lines • 561 B
JavaScript
import tippy from "tippy.js";
import "tippy.js/dist/tippy.css";
export class TippyInfo {
constructor(parentComponent, infoMessage, tippysettings) {
this.parentComponent = parentComponent;
let mergeSettings = { ...tippysettings, content: infoMessage };
this.parentComponent.html
? tippy(this.parentComponent.html[0], mergeSettings)
: console.warn(`Couldn't find html of parentcomponent${this.parentComponent.baseCssClass} make sure to call super.render() first `);
}
}
//# sourceMappingURL=TippyInfo.js.map