Dynamic-Loading

Dynamically fill the dashboard with content based off of database.JSON
Source:
Author:
  • Eric Udlis, Luke Houge

Members

(inner, constant) DATA_INTERFACING

Source:

(inner, constant) TIMER

Source:

Methods

(static) fillAllItems(testing)

Source:
/** Creates an element for each sensor and appends it to the dropdown
Parameters:
Name Type Description
testing Boolean true if testing false if not

(static) fillAllTables()

Source:
Fills all tables on the dashboard

(inner) createActualCol(name) → {HTMLElement}

Source:
Creates the actual value coluumn for a sensor
Parameters:
Name Type Description
name String The name of the sensor
Returns:
The table column
Type
HTMLElement

(inner) createHeaderCol(name, group, units) → {HTMLElement}

Source:
Creates the name column for the sensor
Parameters:
Name Type Description
name String The name of the sensor
group String The group it belongs to
units String The units it's displayed to
Returns:
The table column
Type
HTMLElement

(inner) createMaxCol(name, group)

Source:
Creates the maximum value column for a sensor
Parameters:
Name Type Description
name String The name of the sensor
group String The group the sensor belongs to

(inner) createMinCol(name, group) → {HTMLElement}

Source:
Creates the minimum value column for a sensor
Parameters:
Name Type Description
name String The name of the sensor
group String The group it belongs to
Returns:
The table column
Type
HTMLElement

(inner) createRow(name, group, units)

Source:
Creates a table row with a name, min, actual, and max column and appends it to specified table
Parameters:
Name Type Description
name String The name of the sensor
group String The group the sensor belogns to
units String The units to display in

(inner) fillAllBounds(state)

Source:
Fills all tables nominal values
Parameters:
Name Type Description
state String

(inner) fillRowBounds(subsystem, sensor, state)

Source:
Fills a row's nomimal values
Parameters:
Name Type Description
subsystem String The group the sensor belongs to
sensor String The name of the sensor
state String The state which bounds are being filled

(inner) fillTable(table)

Source:
Fills a table with rows
Parameters:
Name Type Description
table String The name of the group/table to fill

(inner) fillTableBounds(subsystem, state)

Source:
Fills a table's nominal values
Parameters:
Name Type Description
subsystem String The table to fill
state String The state which bounds are being filled

(inner) getMaxCell(sensor) → {HTMLElement}

Source:
Returns the div of the column that contains text
Parameters:
Name Type Description
sensor String Name of sensor
Returns:
The div the contains value text
Type
HTMLElement

(inner) getMinCell(sensor) → {HTMLElement}

Source:
Returns the div of the column that contains text
Parameters:
Name Type Description
sensor String Name of sensor
Returns:
The div the contains value text
Type
HTMLElement

(inner) setMaxCell(sensor, value)

Source:
Sets the text of the maximum value column for a row
Parameters:
Name Type Description
sensor String Name of sensor
value Number Value to set

(inner) setMinCell(sensor, value)

Source:
Sets the text of the minimum value column for a row
Parameters:
Name Type Description
sensor String Name of sensor
value Number Value to set