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

Method back

shepherd.js/src/tour.ts:200–203  ·  view source on GitHub ↗

* Go to the previous step in the tour

()

Source from the content-addressed store, hash-verified

198 * Go to the previous step in the tour
199 */
200 back() {
201 const index = this.steps.indexOf(this.currentStep as Step);
202 this.show(index - 1, false);
203 }
204
205 /**
206 * Calls _done() triggering the 'cancel' event

Callers 4

step.spec.jsFile · 0.80
tour.spec.jsFile · 0.80
handleKeyDownFunction · 0.80

Calls 1

showMethod · 0.95

Tested by

no test coverage detected