API Docs for: 0.5.1
Show:

ExpPlayer Class

Experiment player: a component that renders a series of frames that define an experiment

Sample usage:

{{exp-player
  experiment=experiment
  session=session
  pastSessions=pastSessions
  saveHandler=(action 'saveSession')
  frameIndex=0
  fullScreenElementId='expContainer'}}

Item Index

Methods

Methods

beforeUnload

(
  • event
)
String | Null

Customize what happens when the user exits the page

Parameters:

  • event Event

    The event to be handled

Returns:

String | Null:

If string is provided, triggers a modal to confirm user wants to leave page

Properties

messageEarlyExitModal

String | Null

The message to display in the early exit modal. Newer browsers may not respect this message.