eLABSDK V1.0

API Docs for: 1.0.0
Show:

eLabSDK.Experiment.Section.Text

Summary

Class that extends the Experiment.Section class for adding text sections

Constructor

eLabSDK.Experiment.Section.Text

Syntax

eLabSDK.Experiment.Section.Text

(
  • object
)

Summary

Parameters:

  • object Object
    • sectionID Int

Methods

addContent

Syntax

addContent

(
  • sampleIDs
)

Summary

Add Text to the section

Parameters:

  • sampleIDs Array

addSection

Inherited from eLabSDK.Experiment:

Syntax

addSection

(
  • configObject
  • onCreated
)

Summary

Adds a section to this experiment

Parameters:

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

getExperimentID

Inherited from eLabSDK.Experiment:

Syntax

getExperimentID

() Int

Summary

Returns:

Int:
experimentID

getMeta

Inherited from eLabSDK.Experiment.Section:

Syntax

getMeta

()

Summary

Returns:

metadata of section

getSection

Inherited from eLabSDK.Experiment:

Syntax

getSection

(
  • sectionID
)
eLabSDK.Experiment.Section

Summary

Gets the section object by ID

Parameters:

  • sectionID Type

Returns:

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

getStudyID

Inherited from eLabSDK.Experiment:

Syntax

getStudyID

() Int

Summary

Returns:

Int:
studyID

Properties

object.type

Inherited from eLabSDK.Experiment.Section:

Syntax

object.type

eLabSDK.Experiment.Section.SECTIONTYPE

Summary

sections

Inherited from eLabSDK.Experiment:

Syntax

sections

Array

Summary

Array of eLabSDK.Experiment.Section Sections of experiment

Events

onCreated

Inherited from eLabSDK.Experiment:

Syntax

onCreated

Summary

Use this to access class

Example:

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

onLoaded

Inherited from eLabSDK.Experiment:

Syntax

onLoaded

Summary

Use this to access class

Example:

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

onParagraphContentAdded

Syntax

onParagraphContentAdded

Summary

Event Payload:

Example:

 var content = "your-content-here";
                     paragraphSection.onParagraphContentAdded(function(){
                         alert('content added!');
                     });
                     paragraphSection.onParagraphContentAdded('your-content-here');