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

Method show

codebase/sources/dhtmlxscheduler.es.js:20823–20841  ·  view source on GitHub ↗
(left, top)

Source from the content-addressed store, hash-verified

20821 return this;
20822 }
20823 show(left, top) {
20824 const scheduler2 = this._scheduler;
20825 const domHelpers = scheduler2.$domHelpers;
20826 const container = document.body;
20827 const node = this.getNode();
20828 if (!domHelpers.isChildOf(node, container)) {
20829 this.hide();
20830 container.appendChild(node);
20831 }
20832 if (this._isLikeMouseEvent(left)) {
20833 const position = this._calculateTooltipPosition(left);
20834 top = position.top;
20835 left = position.left;
20836 }
20837 node.style.top = top + "px";
20838 node.style.left = left + "px";
20839 scheduler2._waiAria.tooltipVisibleAttr(node);
20840 return this;
20841 }
20842 hide() {
20843 const scheduler2 = this._scheduler;
20844 const node = this.getNode();

Callers 1

_initDelayedFunctionsMethod · 0.45

Calls 4

getNodeMethod · 0.95
hideMethod · 0.95
_isLikeMouseEventMethod · 0.95

Tested by

no test coverage detected