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

Method tooltipFor

codebase/dhtmlxscheduler.es.js:6627–6641  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

6625 t && this._domEvents.detach(t.node, "mousemove", t.handler);
6626 }
6627 tooltipFor(i) {
6628 const t = (n) => {
6629 let s = n;
6630 return document.createEventObject && !document.createEvent && (s = document.createEventObject(n)), s;
6631 };
6632 this._initDelayedFunctions(), this.attach({ selector: i.selector, global: i.global, onmouseenter: (n, s) => {
6633 const a = i.html(n, s);
6634 a && this.delayShow(t(n), a);
6635 }, onmousemove: (n, s) => {
6636 const a = i.html(n, s);
6637 a ? this.delayShow(t(n), a) : (this.delayShow.$cancelTimeout(), this.delayHide());
6638 }, onmouseleave: () => {
6639 this.delayShow.$cancelTimeout(), this.delayHide();
6640 } });
6641 }
6642 _initDelayedFunctions() {
6643 const i = this._scheduler;
6644 this.delayShow && this.delayShow.$cancelTimeout(), this.delayHide && this.delayHide.$cancelTimeout(), this.tooltip.hide(), this.delayShow = ne.delay((t, n) => {

Callers 1

Calls 3

_initDelayedFunctionsMethod · 0.95
attachMethod · 0.95
tFunction · 0.70

Tested by

no test coverage detected