eLabSDK2.Inventory.Sample.SampleForm

Hierarchy

  • unknown

    SampleForm

Methods

getSampleFieldFromSampleForm

Static getSampleFieldFromSampleForm(fieldName): HTMLInputElement

Retrieve a sample field from the field name

Parameters

NameType
fieldNamestring

Returns

HTMLInputElement

field : field if found


onAddNewSampleFormLoaded

Static onAddNewSampleFormLoaded(callback, id): void

Triggers the given callback function when new sample form is loaded
is loaded in the add sample form page

Parameters

NameTypeDescription
callback(event: CustomEvent<SampleFormInterface>) => voidCallback function to call when the sample form is ready
idstring-

Returns

void


registerAction

Static registerAction(action): void

Register a custom action for the sample form

Parameters

NameType
actionAction

Returns

void


setSampleFormData

Static setSampleFormData(data): void

Set Sample Form Data

Parameters

NameType
dataSampleFormInputData[]

Returns

void


© 2023 eLabNext