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

Method _createTooltipContent

shepherd.js/src/step.ts:603–618  ·  view source on GitHub ↗

* Creates Shepherd element for step based on options * * @return {HTMLElement} The DOM element for the step tooltip * @private

()

Source from the content-addressed store, hash-verified

601 * @private
602 */
603 _createTooltipContent() {
604 const descriptionId = `${this.id}-description`;
605 const labelId = `${this.id}-label`;
606
607 this.shepherdElementComponent = createShepherdElement({
608 classPrefix: this.classPrefix,
609 descriptionId,
610 labelId,
611 step: this
612 });
613
614 const target = this.tour.options.stepsContainer || document.body;
615 target.append(this.shepherdElementComponent.element);
616
617 return this.shepherdElementComponent.element;
618 }
619
620 /**
621 * If a custom scrollToHandler is defined, call that, otherwise do the generic

Callers 2

_setupElementsMethod · 0.95
step.spec.jsFile · 0.80

Calls 1

createShepherdElementFunction · 0.90

Tested by

no test coverage detected