Namespace: kcentra

kcentra~ kcentra

KCentra module

Source:

Methods

(static) addRow(lot, exp) → {null}

Creates an input row with the provided lot and expiration and adds to DOM before the "process text" button

Parameters:
Name Type Description
lot String

Lot number

exp String

Expiration date

Source:

(static) clearText() → {null}

Clears output field

Source:

(static) makeText() → {null}

Outputs text from input rows. Blank inputs are converted to *** wildcards. If no input rows exist, outputs default admin instructions

Source:

(static) processInput() → {null}

Clears output field, parses scancode input and creates an input row for each scan code.

Source:

(static) removeRow(ev) → {null}

Removes the row when the remove button is clicked

Parameters:
Name Type Description
ev DOMEvent

Event triggering this method (clicking .kcentra--remove)

Source: