Callback

You can get Joyride's state changes using the callback prop. It will receive an object with the current state.

Example data

{
  action: 'start',
  controlled: true,
  index: 0,
  lifecycle: 'init',
  origin: null,
  size: 4,
  status: 'running',
  step: { /* the current step */ },
  type: 'tour:start'
}
{
  action: 'update',
  controlled: true,
  index: 0,
  lifecycle: 'beacon',
  origin: null,
  size: 4,
  status: 'running',
  step: { /* the current step */ },
  type: 'beacon'
}

Usage

You can read more about the constants here

Last updated

Was this helpful?