* Updates the options of the step. * * @param {StepOptions} options The options for the step
(options: StepOptions)
| 536 | * @param {StepOptions} options The options for the step |
| 537 | */ |
| 538 | updateStepOptions(options: StepOptions) { |
| 539 | Object.assign(this.options, options); |
| 540 | |
| 541 | if (this.shepherdElementComponent) { |
| 542 | // Recreate the element with updated options |
| 543 | if (this.el) { |
| 544 | this._teardownElements(); |
| 545 | this._setupElements(); |
| 546 | } |
| 547 | } |
| 548 | } |
| 549 | |
| 550 | /** |
| 551 | * Returns the element for the step |
no test coverage detected