MCPcopy
hub / github.com/shipshapecode/shepherd / _setupElements

Method _setupElements

shepherd.js/src/step.ts:701–715  ·  view source on GitHub ↗

* Create the element and set up the FloatingUI instance * @private

()

Source from the content-addressed store, hash-verified

699 * @private
700 */
701 _setupElements() {
702 if (!isUndefined(this.el)) {
703 this.destroy();
704 }
705
706 this.el = this._createTooltipContent();
707
708 if (this.options.advanceOn) {
709 bindAdvance(this);
710 }
711
712 // The tooltip implementation details are handled outside of the Step
713 // object.
714 setupTooltip(this);
715 }
716
717 /**
718 * Triggers `before-show`, generates the tooltip DOM content,

Callers 3

updateStepOptionsMethod · 0.95
_showMethod · 0.95
step.spec.jsFile · 0.80

Calls 5

destroyMethod · 0.95
_createTooltipContentMethod · 0.95
isUndefinedFunction · 0.90
bindAdvanceFunction · 0.90
setupTooltipFunction · 0.90

Tested by

no test coverage detected