Class: PolicyListPresenter

PolicyListPresenter(root, getCodeObj, onCodeObjUpdate)

Manages the UI for listing and editing policies. Manages the UI for listing and editing policies that define recycling, replacement, level changes, limits, etc on substances.

Constructor

new PolicyListPresenter(root, getCodeObj, onCodeObjUpdate)

Creates a new PolicyListPresenter.
Parameters:
Name Type Description
root HTMLElement The root DOM element for the policy 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 sisables the policy list interface.
Source:

enable()

Visually and functionally enables the policy list interface.
Source:

refresh(codeObj)

Updates the policy list to visualize new policies.
Parameters:
Name Type Description
codeObj Object Current code object to display.
Source: