MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / tooltipFor

Method tooltipFor

codebase/sources/dhtmlxscheduler.js:21003–21029  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

21001 }
21002 }
21003 tooltipFor(config) {
21004 const cloneDomEvent = (event2) => {
21005 let clone2 = event2;
21006 if (document["createEventObject"] && !document.createEvent) {
21007 clone2 = document["createEventObject"](event2);
21008 }
21009 return clone2;
21010 };
21011 this._initDelayedFunctions();
21012 this.attach({ selector: config.selector, global: config.global, onmouseenter: (event2, node) => {
21013 const html = config.html(event2, node);
21014 if (html) {
21015 this.delayShow(cloneDomEvent(event2), html);
21016 }
21017 }, onmousemove: (event2, node) => {
21018 const html = config.html(event2, node);
21019 if (html) {
21020 this.delayShow(cloneDomEvent(event2), html);
21021 } else {
21022 this.delayShow.$cancelTimeout();
21023 this.delayHide();
21024 }
21025 }, onmouseleave: () => {
21026 this.delayShow.$cancelTimeout();
21027 this.delayHide();
21028 } });
21029 }
21030 _initDelayedFunctions() {
21031 const scheduler2 = this._scheduler;
21032 if (this.delayShow) {

Callers 1

tooltipFunction · 0.95

Calls 2

_initDelayedFunctionsMethod · 0.95
attachMethod · 0.95

Tested by

no test coverage detected