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

Method show

codebase/sources/dhtmlxscheduler.js:20827–20845  ·  view source on GitHub ↗
(left, top)

Source from the content-addressed store, hash-verified

20825 return this;
20826 }
20827 show(left, top) {
20828 const scheduler2 = this._scheduler;
20829 const domHelpers = scheduler2.$domHelpers;
20830 const container = document.body;
20831 const node = this.getNode();
20832 if (!domHelpers.isChildOf(node, container)) {
20833 this.hide();
20834 container.appendChild(node);
20835 }
20836 if (this._isLikeMouseEvent(left)) {
20837 const position = this._calculateTooltipPosition(left);
20838 top = position.top;
20839 left = position.left;
20840 }
20841 node.style.top = top + "px";
20842 node.style.left = left + "px";
20843 scheduler2._waiAria.tooltipVisibleAttr(node);
20844 return this;
20845 }
20846 hide() {
20847 const scheduler2 = this._scheduler;
20848 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