eLabSDK.Page.Experiment

Functions

NameDescription
registerEvent(eventType, function)Listen to an Experiment based event, currently only the event 'finalSignature' is supported
registerEvent(eventType)Listen to an Experiment based event, currently only the event 'finalSignature' is supported
addBulkSampleAction(actionTitle, callback)Allows the creation of bulk sample actions in the sample list or experiment sample sections
getExperimentObject()Should only be called after onReady of experiment. Otherwise use new eLabSDK.Experiment() directly
registerAction(menuConfig)Registers a new menu item in a section

registerEvent(eventType, function)

Listen to an Experiment based event, currently only the event 'finalSignature' is supported

Kind: global function
Returns: object with details about the event, including the experimentID

ParamTypeDescription
eventTypestring
functionfunctionfunction to execute on this event

registerEvent(eventType)

Listen to an Experiment based event, currently only the event 'finalSignature' is supported

Kind: global function
Returns: object with details about the event, including the experimentID

ParamTypeDescription
eventTypestring
config.labelstringDisplayed text about this meta field

addBulkSampleAction(actionTitle, callback)

Allows the creation of bulk sample actions in the sample list or experiment sample sections

Kind: global function
Response: in callback{json}
{
sampleIDs: [],
seriesIDs: [],
sampleIDsIncludingSeriesClicked: [],
sampleCount: 0,
archivedSamples: 0
}

ParamTypeDescription
actionTitlestring: name of the action displayed in the selector
callbackfunction: function to execute when the action is selected. Provide information on the chosen samples.

getExperimentObject()

Should only be called after onReady of experiment. Otherwise use new eLabSDK.Experiment() directly

Kind: global function

registerAction(menuConfig)

Registers a new menu item in a section

Kind: global function

ParamTypeDescription
menuConfigobject
menuConfig.showOnSignedboolShow this menu item when the experiment is signed (default = true)
menuConfig.showOnNotSignedboolShow this menu item when the experiment is not signed (default = true)
menuConfig.labelstringLabel to be displayed next to the icon

© 2023 eLabNext