eLabSDK2.Inventory

Hierarchy

Methods

addEventListener

Static addEventListener<T>(eventName, callback, id): void

Register event listener, eventName should be one of the available SDK events
Will not re-register when function is already linked to specified event.

Type parameters

NameType
TEvent

Parameters

NameType
eventNamestring
callback(e: T) => void
idstring

Returns

void

Inherited from

eLabSDK2.addEventListener


goToAllSamplesPage

Static goToAllSamplesPage(): void

Navigates to the all samples page.

Returns

void


goToCompartment

Static goToCompartment(storageLayerID): void

go to a compartment in the inventory browser.

Parameters

NameTypeDescription
storageLayerIDnumberstorageLayerID of compartment to go to

Returns

void


inventoryBrowserActive

Static inventoryBrowserActive(): boolean

Returns true if inventory rebuild is currently displayed.

Returns

boolean


onAfterPageLoad

Static onAfterPageLoad(callback, id): void

Triggers the callback after loading the Inventory application

Example:
eLabSDK2.Inventory.onAfterPageLoad(() => {console.log('Inventory loaded');}, id: 'my-unique-id'})

Parameters

NameTypeDescription
callbackFunction:Function callback function to trigger
idstring:string unique id for this callback

Returns

void

Overrides

eLabSDK2.onAfterPageLoad


onBeforePageExit

Static onBeforePageExit(callback, id): void

Triggers the callback prior to leaving the page. (soft or hard route)

Parameters

NameTypeDescription
callbackFunction:Function
idstring-

Returns

void

Inherited from

eLabSDK2.onBeforePageExit


onBeforePageLoad

Static onBeforePageLoad(callback, id): void

Triggers the callback prior to loading the Inventory application

Parameters

NameTypeDescription
callbackFunction:Function callback function to trigger
idstring:string unique id for this callback @example: eLabSDK2.Inventory.onBeforePageLoad(() => {console.log('Prior to Inventory loading');}, id: 'my-unique-id'})

Returns

void

Overrides

eLabSDK2.onBeforePageLoad


onTreeReady

Static onTreeReady(callback, id): void

Register a callback to be notified when the inventory tree is ready.

Parameters

NameTypeDescription
callbackanyThe function to be called when the tree is ready.
idany-

Returns

void

void


openExportSettingsModal

Static openExportSettingsModal(config): void

Display the export settings modal.

Parameters

NameTypeDescription
configExportSettingsDialogConfiga ExportSettingsDialogConfig object in which you can specify fileType with the default export fileType ('CSV', 'XLSX', 'PDF').

Returns

void

a promise with exportsettings


openHeatmap

Static openHeatmap(storageLayerID): void

Parameters

NameType
storageLayerIDnumber

Returns

void


pickEquipment

Static pickEquipment(config): Promise<StorageUnit[]>

Select equipment in the inventory browser.

Parameters

NameType
configPickEquipmentConfig

Returns

Promise<StorageUnit[]>

  • list of equipment

pickLocation

Static pickLocation(options?): Promise<StorageLayer>

Select a storagelayer in the inventory browser.

Parameters

NameTypeDescription
optionsPickerModalOptionsSmalloptional, starting storageLayerID of location to start browsing

Returns

Promise<StorageLayer>


pickSamples

Static pickSamples(options?): Promise<number[]>

Select a storagelayer in the inventory browser.

Parameters

NameTypeDescription
optionsPickerModalOptionsSmalloptional - this is where the settings of the modal can be set

Returns

Promise<number[]>

  • list of sampleIds

selectStorageLayer

Static selectStorageLayer(startingStorageLayerID?): Promise<StorageLayer>

DEPRECATED: Select a storagelayer in the inventory browser.
USE: pickLocation()

Parameters

NameTypeDefault valueDescription
startingStorageLayerIDnumber0optional, starting storageLayerID of location to start browsing

Returns

Promise<StorageLayer>


© 2023 eLabNext