Wizard Class
Represents a tutorial
Item Index
Methods
getStepPosition
-
step
Returns the position of the step passed as argument or (by default) the current step
Parameters:
-
step
ObjectThe step object to get position
hideStep
-
callback
Hides the step
Parameters:
-
callback
FunctionA callback function to be called in the ending of the hiding process
isAlreadyWatched
()
Boolean
Checks if the current user already watched this wizard
Returns:
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:
A boolean indicating if this wizard should be available in the current context
next
-
callback
Shows the next step of the wizard
Parameters:
-
callback
FunctionA callback function to be called
play
()
Runs the wizard
pollForCheckCompletedStep
()
A Polling function to check if the current step is completed
showStep
-
step
-
callback
Shows a specific step
Parameters:
-
step
ObjectThe step to be shown
-
callback
FunctionA callback function to be called
storyLine
()
Sets the storyline for the wizard