eLabSDK2.Inventory
Hierarchy
-
default
↳
Inventory
↳↳
Equipment
↳↳
StorageLayer
↳↳
StorageUnit
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
Name | Type |
---|---|
T | Event |
Parameters
Name | Type |
---|---|
eventName | string |
callback | (e : T ) => void |
id | string |
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
Name | Type | Description |
---|---|---|
storageLayerID | number | storageLayerID 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 the dom has been rendered
Parameters
Name | Type | Description |
---|---|---|
callback | Function | :Function |
id | string | - |
Returns
void
Inherited from
eLabSDK2.onAfterPageLoad
onBeforePageExit
Static
onBeforePageExit(callback
, id
): void
Triggers the callback prior to leaving the page. (soft or hard route)
Parameters
Name | Type | Description |
---|---|---|
callback | Function | :Function |
id | string | - |
Returns
void
Inherited from
eLabSDK2.onBeforePageExit
onBeforePageLoad
Static
onBeforePageLoad(callback
, id
): void
Triggers the callback prior to loading the data / DOM
Parameters
Name | Type | Description |
---|---|---|
callback | Function | :Function |
id | string | - |
Returns
void
Inherited from
eLabSDK2.onBeforePageLoad
onTreeReady
Static
onTreeReady(callback
, id
): void
Register a callback to be notified when the inventory tree is ready.
Parameters
Name | Type | Description |
---|---|---|
callback | any | The function to be called when the tree is ready. |
id | any | - |
Returns
void
void
openHeatmap
Static
openHeatmap(storageLayerID
): void
Parameters
Name | Type |
---|---|
storageLayerID | number |
Returns
void
pickLocation
Static
pickLocation(options?
): Promise
<StorageLayer
>
Select a storagelayer in the inventory browser.
Parameters
Name | Type | Description |
---|---|---|
options | PickerModalOptionsSmall | optional, starting storageLayerID of location to start browsing |
Returns
Promise
<StorageLayer
>
pickSamples
Static
pickSamples(options?
): Promise
<number
[]>
Select a storagelayer in the inventory browser.
Parameters
Name | Type | Description |
---|---|---|
options | PickerModalOptionsSmall | optional - 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
Name | Type | Default value | Description |
---|---|---|---|
startingStorageLayerID | number | 0 | optional, starting storageLayerID of location to start browsing |
Returns
Promise
<StorageLayer
>
© 2023 eLabNext
Updated 4 months ago