displaying PrrByVaccineTable
This commit is contained in:
15
docs/SymptomsCausedByVaccines/js/PrrByVaccineTableView.js
Normal file
15
docs/SymptomsCausedByVaccines/js/PrrByVaccineTableView.js
Normal file
@@ -0,0 +1,15 @@
|
||||
class PrrByVaccineTableView {
|
||||
|
||||
#prrByVaccineTable;
|
||||
|
||||
constructor(prrByVaccineTableElement) {
|
||||
this.#prrByVaccineTable = new PrrByVaccineTable(prrByVaccineTableElement);
|
||||
this.#prrByVaccineTable.initialize();
|
||||
}
|
||||
|
||||
displayPrrByVaccineTable4Symptom(symptom) {
|
||||
PrrByVaccineProvider
|
||||
.getPrrByVaccine(symptom)
|
||||
.then(prrByVaccine => this.#prrByVaccineTable.display(prrByVaccine));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user