API Docs for: 1.0.0
Show:

eLabSDK.Page.EquipmentEditor Class

Extends eLabSDK.Base
Module: eLabSDK.MessageQueue

Print labels

Constructor

eLabSDK.Page.EquipmentEditor

(
  • object
)

Parameters:

  • object Object

Example:

   new eLabSDK.Page.EquipmentEditor({
    onSave: function(data){
            console.log('Current Equipment Data', data);
           let ManufacturerMeta = null;
           for (let i = 0; i < data.Meta.length; i++) {
               if (data.Meta[i].Name == 'Manufacturer') {
                   ManufacturerMeta = data.Meta[i];
               }
           }
           if (ManufacturerMeta != null && ManufacturerMeta.Value == ""){
               Dialog.error('Manufactured Missing', 'Please enter a value for Manufacturer', function () { }, 425);
               return false; // Prevents submitting form
           } else{
               return true; // Allows submitting form
           }
       
       }
   });

Item Index