Create a new Tour instance
Optional
elementOrSelector: string | HTMLElementOptional target element or CSS query to start the Tour on
Optional
options: Partial<TourOptions>Optional Tour options
Append the floating element to the target element. Floating element is a helper element that is used when the step does not have a target element. For internal use only.
Get a specific callback function
callback name
Clone the current tour instance
Decrement the current step of the tour (does not start the tour step, must be in conjunction with previousStep
)
Disable keyboard navigation for the tour
Disable refresh on window resize for the tour
Enable keyboard navigation for the tour
Enable refresh on window resize for the tour
Get the current step of the tour
Returns the underlying state of the current step This is an internal method and should not be used outside of the package.
Get the direction of the tour (forward or backward)
Get a specific option for the tour
option key
Returns the underlying state of the refreshes This is an internal method and should not be used outside of the package.
Get all available steps of the tour
Get the target element of the tour
Go to a specific step of the tour with the explicit [data-step] number
[data-step] value of the step
Returns true if the tour has started
Increment the current step of the tour (does not start the tour step, must be called in conjunction with nextStep
)
Returns true if the tour instance is active
Check if the current step is the last step
Check if the current step is the last step of the tour
Go to the next step of the tour
Add a callback to be called after the tour changes steps
callback function to be called
Add a callback to be called before the tour changes steps
callback function to be called
Add a callback to be called before the tour is exited
callback function to be called
Add a callback to be called when the tour changes steps
callback function to be called
Add a callback to be called when the tour is completed
callback function to be called
Add a callback to be called when the tour is exited
callback function to be called
Add a callback to be called when the tour is skipped
callback function to be called
Add a callback to be called when the tour is started
callback function to be called
Go to the previous step of the tour
Refresh the tour
Optional
refreshSteps: booleanwhether to refresh the tour steps
Set the current step of the tour and the direction of the tour
Set the dontShowAgain
option for the tour so that the tour does not show twice to the same user
This is a persistent option that is stored in the browser's cookies
boolean value to set the dontShowAgain
option
Set a specific option for the tour
option key
option value
Set the options for the tour
key/value pair of options
Starts the tour and shows the first step
Intro.js Tour class