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

Method start

shepherd.js/src/tour.ts:350–362  ·  view source on GitHub ↗

* Start the tour

()

Source from the content-addressed store, hash-verified

348 * Start the tour
349 */
350 async start() {
351 this.trigger('start');
352
353 // Save the focused element before the tour opens
354 this.focusedElBeforeOpen = document.activeElement as HTMLElement | null;
355
356 this.currentStep = null;
357
358 this.setupModal();
359
360 this._setupActiveTour();
361 this.next();
362 }
363
364 /**
365 * Called whenever the tour is cancelled or completed, basically anytime we exit the tour

Callers 7

step.spec.jsFile · 0.80
tour.spec.jsFile · 0.80
a11y.cy.jsFile · 0.80
modal.cy.jsFile · 0.80

Calls 4

setupModalMethod · 0.95
_setupActiveTourMethod · 0.95
nextMethod · 0.95
triggerMethod · 0.80

Tested by

no test coverage detected