MCPcopy Index your code
hub / github.com/shipshapecode/shepherd / updateStepOptions

Method updateStepOptions

shepherd.js/src/step.ts:538–548  ·  view source on GitHub ↗

* Updates the options of the step. * * @param {StepOptions} options The options for the step

(options: StepOptions)

Source from the content-addressed store, hash-verified

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

Callers 1

step.spec.jsFile · 0.80

Calls 2

_teardownElementsMethod · 0.95
_setupElementsMethod · 0.95

Tested by

no test coverage detected