Skip to main content

Events

The plug-in exposes Shepherd tour and step events along with additional data available through the  this.data variable. The available events to listen to on the page designer level are the following:

  • Tour Start
  • Tour Cancel
  • Tour Complete
  • Tour Show
  • Step Complete
  • Step Before Hide
  • Step Before Show
  • Step Hide
  • Step Show
  • Step Cancel
  • Step Destroy

All events expose the same data except for Tour Show and Tour Start. See the table below for details.

PropertyTypeDescription
this.data.daObjectContains information about dynamic action implementing the tour / step
this.data.da.idStringDynamic action id stored in Oracle APEX tables
this.data.da.nameStringDynamic action name
this.data.tourObjectA plug-in object containing information about tour
this.data.tour.nameStringA tour name defined by a developer
this.data.tour.instanceTourA shepherd Tour object
this.data.stepObjectA plug-in object containing information about tour step

Not available for Tour Start
this.data.step.affectedElementsjQuery ObjectA jQuery reference to the step affected elements.

Not available for Tour Start
this.data.step.instanceStepA shepherd Step object.

Not available for Tour Start
this.data.step.idStringA step static id defined by a developer.

Not available for Tour Start
this.data.step.idxNumberA step index among other tour steps.

Not available for Tour Start
this.data.step.previousStepA tour previous step instance.

Available only for Tour Show