API Docs for:
Show:

Wizard Class

Represents a tutorial

Methods

getStepPosition

(
  • step
)

Returns the position of the step passed as argument or (by default) the current step

Parameters:

  • step Object

    The step object to get position

hideStep

(
  • callback
)

Hides the step

Parameters:

  • callback Function

    A callback function to be called in the ending of the hiding process

isAlreadyWatched

() Boolean

Checks if the current user already watched this wizard

Returns:

Boolean:

A boolean indicating if the user watched this wizard

isEligible

() Boolean

Checks if a wizard should be shown in the current context (running each evaluator defined for this wizard)

Returns:

Boolean:

A boolean indicating if this wizard should be available in the current context

next

(
  • callback
)

Shows the next step of the wizard

Parameters:

  • callback Function

    A callback function to be called

pollForCheckCompletedStep

()

A Polling function to check if the current step is completed

showStep

(
  • step
  • callback
)

Shows a specific step

Parameters:

  • step Object

    The step to be shown

  • callback Function

    A callback function to be called

storyLine

()

Sets the storyline for the wizard