tool_usertours/events

Javascript events for the tool_usertours subsystem.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Example

Example of listening to a step rendering event and cancelling it.

import {eventTypes as userTourEvents} from 'tool_usertours/events';

document.addEventListener(userTourEvents.stepRender, e => {
    console.log(e.detail.tour); // The Tour instance
    e.preventDefault();
});

Members

(static, constant) eventTypes

Source:
Properties:
Name Type Description
eventTypes object
Properties
Name Type Description
stepRender String

See event:tool_usertours/stepRender

stepRendered String

See event:tool_usertours/stepRendered

tourStart String

See event:tool_usertours/tourStart

tourStarted String

See event:tool_usertours/tourStarted

tourEnd String

See event:tool_usertours/tourEnd

tourEnded String

See event:tool_usertours/tourEnded

stepHide String

See event:tool_usertours/stepHide

stepHidden String

See event:tool_usertours/stepHidden

Events for the component.

Events

tool_usertours/stepHidden

Source:
Properties:
Name Type Description
detail object
Properties
Name Type Description
tour tool_usertours/tour

An event triggered after a step has been hidden.

Type:
  • CustomEvent

tool_usertours/stepHide

Source:
Properties:
Name Type Description
detail object
Properties
Name Type Description
tour tool_usertours/tour

An event triggered before a step is hidden.

This event is cancellable.

Type:
  • CustomEvent

tool_usertours/stepRender

Source:
Properties:
Name Type Description
detail object
Properties
Name Type Description
tour tool_usertours/tour
stepConfig object

An event triggered before a user tour step is rendered.

This event is cancellable.

Type:
  • CustomEvent

tool_usertours/stepRendered

Source:
Properties:
Name Type Description
detail object
Properties
Name Type Description
tour tool_usertours/tour
stepConfig object

An event triggered after a user tour step has been rendered.

Type:
  • CustomEvent
Listeners of This Event:

tool_usertours/tourEnd

Source:
Properties:
Name Type Description
detail object
Properties
Name Type Description
tour tool_usertours/tour

An event triggered before a tour ends.

This event is cancellable.

Type:
  • CustomEvent

tool_usertours/tourEnded

Source:
Properties:
Name Type Description
detail object
Properties
Name Type Description
tour tool_usertours/tour

An event triggered after a tour has ended.

Type:
  • CustomEvent

tool_usertours/tourStart

Source:
Properties:
Name Type Description
detail object
Properties
Name Type Description
tour tool_usertours/tour
startAt Number

An event triggered before a user tour starts.

This event is cancellable.

Type:
  • CustomEvent

tool_usertours/tourStarted

Source:
Properties:
Name Type Description
detail object
Properties
Name Type Description
tour tool_usertours/tour

An event triggered after a user tour has started.

Type:
  • CustomEvent