refactoring
This commit is contained in:
@@ -2,7 +2,7 @@ class BatchCodeDetailsView {
|
||||
|
||||
#uiContainer;
|
||||
#headingElement;
|
||||
#batchcodesSelectElement;
|
||||
#batchCodesSelectElement;
|
||||
#adverseReactionReportsChartView;
|
||||
#histogramChartView;
|
||||
#chartWithSlider;
|
||||
@@ -10,7 +10,7 @@ class BatchCodeDetailsView {
|
||||
constructor(uiContainer) {
|
||||
this.#uiContainer = uiContainer
|
||||
this.#headingElement = this.#uiContainer.querySelector(".heading");
|
||||
this.#batchcodesSelectElement = new ElementWithSingleChangeEventListener(this.#uiContainer.querySelector("#batchcodesSelect"));
|
||||
this.#batchCodesSelectElement = new ElementWithSingleChangeEventListener(this.#uiContainer.querySelector("#batchCodesSelect"));
|
||||
this.#adverseReactionReportsChartView = new AdverseReactionReportsChartView(this.#uiContainer.querySelector('#adverseReactionReportsChartView'));
|
||||
this.#chartWithSlider = this.#uiContainer.querySelector('.chartWithSlider');
|
||||
this.#histogramChartView = new HistogramChartView(this.#chartWithSlider.querySelector("canvas"));
|
||||
@@ -58,7 +58,7 @@ class BatchCodeDetailsView {
|
||||
#displaySelectBatchcodeCombination(histograms) {
|
||||
BatchcodeCombinationSelection.configureSelectBatchcodeCombinationElement(
|
||||
{
|
||||
batchcodesSelectElement: this.#batchcodesSelectElement,
|
||||
batchCodesSelectElement: this.#batchCodesSelectElement,
|
||||
histograms: histograms,
|
||||
onSelect: histoDescr => this.#displayHistogram(histoDescr)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user