eLabSDK.Experiment

Members

NameDescription
sectionsArray of eLabSDK.Experiment.Section

Sections of experiment

Functions

NameDescription
getExperimentID()
getStudyID()
addSection(configObject, onCreated)Adds a section to this experiment
getSection(sectionID)Gets the section object by ID

Events

NameDescription
"onLoaded"Use this to access class
"onCreated"Use this to access class

sections

Array of eLabSDK.Experiment.Section
Sections of experiment

Kind: global variable
Properties

NameType
sectionsarray

getExperimentID()

Kind: global function
Returns: int - experimentID

getStudyID()

Kind: global function
Returns: int - studyID

addSection(configObject, onCreated)

Adds a section to this experiment

Kind: global function

ParamTypeDescription
configObjectobj
configObject.headerstringSection Header Text
configObject.typeeLabSDK.Experiment.Section.SECTIONTYPESection Type
onCreatedfunction

getSection(sectionID)

Gets the section object by ID

Kind: global function
Returns: eLabSDK.Experiment.Section - section or null of it doest not exist

ParamType
sectionIDtype

"onLoaded"

Use this to access class

Kind: event emitted
Example

var ev = experimentObject.onLoaded(function () { 
          alert('Experiment onLoaded'); 
      });

"onCreated"

Use this to access class

Kind: event emitted
Example

var ev = experimentObject.onCreated(function () { 
          alert('Experiment created'); 
      });

© 2023 eLabNext