* Creates Shepherd element for step based on options * * @return {HTMLElement} The DOM element for the step tooltip * @private
()
| 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 |
no test coverage detected