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

Method _initDelayedFunctions

codebase/sources/dhtmlxscheduler.js:21030–21051  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21028 } });
21029 }
21030 _initDelayedFunctions() {
21031 const scheduler2 = this._scheduler;
21032 if (this.delayShow) {
21033 this.delayShow.$cancelTimeout();
21034 }
21035 if (this.delayHide) {
21036 this.delayHide.$cancelTimeout();
21037 }
21038 this.tooltip.hide();
21039 this.delayShow = utils.delay((event2, html) => {
21040 if (scheduler2.callEvent("onBeforeTooltip", [event2]) === false) {
21041 this.tooltip.hide();
21042 } else {
21043 this.tooltip.setContent(html);
21044 this.tooltip.show(event2);
21045 }
21046 }, scheduler2.config.tooltip_timeout || 1);
21047 this.delayHide = utils.delay(() => {
21048 this.delayShow.$cancelTimeout();
21049 this.tooltip.hide();
21050 }, scheduler2.config.tooltip_hide_timeout || 1);
21051 }
21052 }
21053 function tooltip(scheduler2) {
21054 scheduler2.config.tooltip_timeout = 30;

Callers 2

constructorMethod · 0.95
tooltipForMethod · 0.95

Calls 4

callEventMethod · 0.65
hideMethod · 0.45
setContentMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected