API Docs for: 1.0.0
Show:

eLabSDK.Experiment.Section Class

Module: eLabSDK

Class that allows creating experiment sections

Constructor

eLabSDK.Experiment.Section

(
  • object
)

Parameters:

Methods

addSection

(
  • configObject
  • onCreated
)

Inherited from eLabSDK.Experiment:

Adds a section to this experiment

Parameters:

  • configObject Obj
    • header String
      • Section Header Text
    • type eLabSDK.Experiment.Section.SECTIONTYPE
      • Section Type
  • onCreated Function

getExperimentID

() Int

Inherited from eLabSDK.Experiment:

Returns:

Int: experimentID

getMeta

()

Returns:

metadata of section

getSection

(
  • sectionID
)
eLabSDK.Experiment.Section

Inherited from eLabSDK.Experiment:

Gets the section object by ID

Parameters:

  • sectionID Type

Returns:

eLabSDK.Experiment.Section: section or null of it doest not exist

getStudyID

() Int

Inherited from eLabSDK.Experiment:

Returns:

Int: studyID

Properties

object.type

eLabSDK.Experiment.Section.SECTIONTYPE

sections

Array

Inherited from eLabSDK.Experiment:

Array of eLabSDK.Experiment.Section Sections of experiment

Attributes

eLabSDK.Experiment.Section.SECTIONTYPE

int object.value static readonly

ENUM SECTIONTYPE

Events

onCreated

Inherited from eLabSDK.Experiment:

Use this to access class

Example:

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

onLoaded

Inherited from eLabSDK.Experiment:

Use this to access class

Example:

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