Skip to content

Commit

Permalink
Specify starting step by providing index
Browse files Browse the repository at this point in the history
  • Loading branch information
reidjs committed May 18, 2018
1 parent 9fbcfe5 commit 112443a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/VTour.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ export default {
}
},
methods: {
start () {
start ({ startIdx }) {
// Wait for the DOM to be loaded, then start the tour
setTimeout(() => {
this.customCallbacks.onStart()
this.currentStep = 0
this.currentStep = typeof startIdx !== 'undefined' ? parseInt(startIdx, 10) : 0
}, this.customOptions.startTimeout)
},
previousStep () {
Expand Down

0 comments on commit 112443a

Please sign in to comment.