eLabSDK2.Inventory.StorageUnit.StorageUnitDetail

Hierarchy

Methods

addSection

Static addSection(section): void

Add a custom section to a storage unit detail page. This is rendered in the 'overview'
tab of a storage unit.

Parameters

NameTypeDescription
sectionCustomSection: { id: string, isVisible: (id :number) => boolean onRendered: Function, position: CustomSectionPosition, contents: string, header: CustomSectionHeader }

Returns

void


addTab

Static addTab(tab): void

Add a custom tab to a storage unit detail page.
If type is set to 'table', pass a SDKTableConfig object as contents
to render contents in predefined table layout.

Parameters

NameTypeDescription
tabCustomSection: { id: string, title: string, type: 'table'|'custom', content: string|Function|SDKTableConfig, isVisible: (id :number) => boolean isLoading: (id :number) => boolean onRendered: Function, }

Returns

void


getStorageUnitDetail

Static getStorageUnitDetail(): StorageDetailStoreInterface

Get storage unit detail.

Returns

StorageDetailStoreInterface

An object containing the details of the active storage unit.


getStorageUnitID

Static getStorageUnitID(): number

Retrieve the sampleID of the sample currently loaded in the
detail view of the inventory browser (if any).

Returns

number

sampleID :Number or null if not present


onReady

Static onReady(callback, id): void

Register a callback function to be executed when a Storage Unit detail page is 'ready'.
The callback is called passing in the storageUnitID as detail in the event parameter.

Parameters

NameType
callback(event: CustomEvent<number>) => void
idstring

Returns

void


onSectionReady

Static onSectionReady(callback, id): void

Register a callback function to be executed when a Storage Unit section is 'ready'.

Parameters

NameType
callback(event: Event) => void
idstring

Returns

void


registerAction

Static registerAction(action): void

Register a custom action in the context of a storage unit page

Parameters

NameTypeDescription
actionActionthe action to register

Returns

void

void


© 2023 eLabNext