Skip to content

Commit

Permalink
feat: add optional starting step to VTour
Browse files Browse the repository at this point in the history
  • Loading branch information
CromonMS committed May 15, 2018
1 parent 9fbcfe5 commit 13d6996
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 (initialStep) {
// Wait for the DOM to be loaded, then start the tour
setTimeout(() => {
this.customCallbacks.onStart()
this.currentStep = 0
this.currentStep = initialStep || 0
}, this.customOptions.startTimeout)
},
previousStep () {
Expand Down

0 comments on commit 13d6996

Please sign in to comment.