eLabSDK.Experiment
Members
Name | Description |
---|---|
sections | Array of eLabSDK.Experiment.Section |
Sections of experiment
Functions
Name | Description |
---|---|
getExperimentID() | |
getStudyID() | |
addSection(configObject, onCreated) | Adds a section to this experiment |
getSection(sectionID) | Gets the section object by ID |
Events
Name | Description |
---|---|
"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
Name | Type |
---|---|
sections | array |
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
Param | Type | Description |
---|---|---|
configObject | obj | |
configObject.header | string | Section Header Text |
configObject.type | eLabSDK.Experiment.Section.SECTIONTYPE | Section Type |
onCreated | function |
getSection(sectionID)
Gets the section object by ID
Kind: global function
Returns: eLabSDK.Experiment.Section
- section or null of it doest not exist
Param | Type |
---|---|
sectionID | type |
"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
Updated 10 months ago