Callbacks & Emits
Listen to tour lifecycle events with Vue emits.
Callbacks and Emits
VTour emits four events you can listen to. A notification fires on each one in the demo below.
Event reference
@tour:start
() => voidFired when the tour begins.
@tour:end
() => voidFired when the tour completes normally.
@tour:skip
() => voidFired when the user skips the tour.
@tour:step-change
({ from: number, to: number }) => voidFired on every step transition. Payload contains the previous (
from) and next (to) step indices.