Journey.js - Documentation - Binding Options - Custom Triggers

Below is a list of all the binding options custom triggers supported in Journey.js, which are fired when specific actions occur.

Download Now

v1.7.0 - 21st Apr 2024
Option Triggers

For Viewing:

options.events.onEnter( element ):

Fires when the dialog is shown for a specific DOM element.
Parameter: element: object - The DOM element that the dialog is being shown for.

options.events.onLeave( element ):

Fires when the dialog is hidden for a specific DOM element.
Parameter: element: object - The DOM element that the dialog is being hidden for.

options.events.onClose( element ):

Fires when the the dialog is closed on a specific DOM element.
Parameter: element: object - The DOM element that the dialog was closed on.

options.events.onFinish( element ):

Fires when the dialog is closed on the final step.
Parameter: element: object - The DOM element that the dialog was closed on.

options.events.onOpen( element ):

Fires when the dialog is first opened.
Parameter: element: object - The DOM element that the dialog was opened on.

options.events.onStart( element ):

Fires when the journey is started (at step 1).
Parameter: element: object - The DOM element that the dialog was started on.


For Steps:

options.events.onAddStep( element ):

Fires when a step is added to the journey.
Parameter: element: object - The DOM element that was added to the journey.

options.events.onRemoveStep( element ):

Fires when a step is removed from the journey.
Parameter: element: object - The DOM element that was removed from the journey.