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

Method show

codebase/dhtmlxscheduler.es.js:6564–6571  ·  view source on GitHub ↗
(i, t)

Source from the content-addressed store, hash-verified

6562 return this._root = i, this;
6563 }
6564 show(i, t) {
6565 const n = this._scheduler, s = n.$domHelpers, a = document.body, o = this.getNode();
6566 if (s.isChildOf(o, a) || (this.hide(), a.appendChild(o)), this._isLikeMouseEvent(i)) {
6567 const _ = this._calculateTooltipPosition(i);
6568 t = _.top, i = _.left;
6569 }
6570 return o.style.top = t + "px", o.style.left = i + "px", n._waiAria.tooltipVisibleAttr(o), this;
6571 }
6572 hide() {
6573 const i = this._scheduler, t = this.getNode();
6574 return t && t.parentNode && t.parentNode.removeChild(t), i._waiAria.tooltipHiddenAttr(t), this;

Callers 1

_initDelayedFunctionsMethod · 0.45

Calls 4

getNodeMethod · 0.95
hideMethod · 0.95
_isLikeMouseEventMethod · 0.95

Tested by

no test coverage detected