API List

The list of methods provided by aideye after initialization.

MethodParameterReturnsDescription
startnumber | undefinedvoid

Starts the tour at step number.

moveNext-voidMoves to the next step.
movePrevious-voidMoves to the previous step.
moveTonumbervoid

Moves to step number.

hasNextStep-AidEyeStep | falseReturns whether there is a next step.
hasPreviousStep-AidEyeStep | falseReturns whether there is a previous step.
isFirstStep-booleanReturns whether the current step is the first step.
getActiveIndex-number | undefinedReturns the active step index.
getActiveStep-AidEyeStep | undefinedReturns the active step configuration.
getPreviousStep-AidEyeStep | undefinedReturns the previous step configuration.
getActiveElement-Element | undefinedReturns the active HTML element.
getPreviousElement-Element | undefinedReturns the previous HTML element.
isActive-booleanReturns whether the tour or highlight is currently active.
refresh-voidRecalculates and redraws the highlight.
getConfig-ConfigReturns the configuration object.
setConfigConfig | undefinedvoidSets the configuration object.
setStepsAidEyeStep[]voidSets the steps.
getState-StateReturns the state object.
highlightAidEyeStepvoidHighlights an element.
destroy-voidDestroys the instance.