intro.js
    Preparing search index...

    Intro.js Tour class

    Implements

    Index

    Constructors

    • Create a new Tour instance

      Parameters

      • OptionalelementOrSelector: string | HTMLElement

        Optional target element or CSS query to start the Tour on

      • Optionaloptions: Partial<TourOptions>

        Optional Tour options

      Returns Tour

    Methods

    • 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.

      Returns Element

    • Returns undefined | number

      currentStep() is deprecated, please use getCurrentStep() instead.

    • Decrement the current step of the tour (does not start the tour step, must be in conjunction with previousStep)

      Returns this

    • Returns the underlying state of the current step This is an internal method and should not be used outside of the package.

      Returns State<undefined | number>

    • Get the direction of the tour (forward or backward)

      Returns "forward" | "backward"

    • Returns the underlying state of the refreshes This is an internal method and should not be used outside of the package.

      Returns State<number>

    • Go to a specific step of the tour with the explicit [data-step] number

      Parameters

      • stepNumber: number

        [data-step] value of the step

      Returns Promise<Tour>

    • Increment the current step of the tour (does not start the tour step, must be called in conjunction with nextStep)

      Returns this

    • Set the current step of the tour and the direction of the tour

      Parameters

      • step: number

      Returns this

    • 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

      Parameters

      • dontShowAgain: boolean

        boolean value to set the dontShowAgain option

      Returns Tour