Next -> End button when finished #572

Open
barryvdh opened this Issue Sep 6, 2016 · 2 comments

Projects

None yet

3 participants

@barryvdh
barryvdh commented Sep 6, 2016

Is it possible to show the End button only when the tour is on the last step?
So normally < Prev | Next >, but on the last (when next is disabled): < Prev | Close
Thanks!

@fnicollet

I am also interested in that feature. Being able to choose which buttons to show (force) on each step's options would be a nice addition

@AndrewBogdanovTSS

@barryvdh @fnicollet You can use a little css in conjunction with an onNext event to achieve that. You will need to hide popover end button by default with this CSS:
.popover [data-role=end] {
visibility: hidden;
}
Then you should subscribe to onNext event and look for the current step, if it's the last one, just set end button visibility back to visible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment