Class: DimensionCardPresenter

DimensionCardPresenter(root, onUpdateFilterSet)

Presenter for dimension cards display. Presenter which shows the dimensions selectors with embedded bar charts that allow for changing of filters.

Constructor

new DimensionCardPresenter(root, onUpdateFilterSet)

Create a new DimensionCardPresenter.
Parameters:
Name Type Description
root HTMLElement Root DOM element.
onUpdateFilterSet function Callback for filter updates.
Source:

Methods

setLabel(dimensionType, labelText)

Set the label text for a specific dimension.
Parameters:
Name Type Description
dimensionType string The dimension type ("simulations", "applications", "substances").
labelText string The text to use for the label.
Source:

showResults(results, filterSet)

Update dimension cards with new results
Parameters:
Name Type Description
results Object Results data to display
filterSet FilterSet Current filter settings
Source: