Class: ConsumptionListPresenter

ConsumptionListPresenter(root, getCodeObj, onCodeObjUpdate)

Manages the UI for listing and editing consumption logic. Manages the UI for listing and editing consumption logic where substances are consumed for different applications.

Constructor

new ConsumptionListPresenter(root, getCodeObj, onCodeObjUpdate)

Creates a new ConsumptionListPresenter.
Parameters:
Name Type Description
root HTMLElement The root DOM element for the consumption list.
getCodeObj function Callback to get the current code object.
onCodeObjUpdate function Callback when the code object is updated.
Source:

Methods

disable()

Visually and functionally disables the consumption list interface.
Source:

enable()

Visually and functionally enables the consumption list interface.
Source:

refresh(codeObj)

Updates the consumption list display with new data.
Parameters:
Name Type Description
codeObj Object Current code object to display.
Source: