refactoring
This commit is contained in:
@@ -4,7 +4,7 @@ class PrrByVaccineTableView {
|
||||
|
||||
constructor(prrByVaccineTableElement, downloadPrrByVaccineTableButton) {
|
||||
this.#delegate = new PrrByKeyTableView(
|
||||
new PrrByVaccineTable(prrByVaccineTableElement),
|
||||
this.#createPrrByVaccineTable(prrByVaccineTableElement),
|
||||
downloadPrrByVaccineTableButton,
|
||||
'Symptom',
|
||||
PrrByVaccineProvider.getPrrByVaccine);
|
||||
@@ -13,4 +13,13 @@ class PrrByVaccineTableView {
|
||||
displayPrrByVaccineTable4Symptom(symptom) {
|
||||
this.#delegate.displayPrrByKeyTable4Value(symptom);
|
||||
}
|
||||
|
||||
#createPrrByVaccineTable(tableElement) {
|
||||
return new PrrByKeyTable({
|
||||
tableElement: tableElement,
|
||||
keyColumnName: 'Vaccine',
|
||||
prrColumnName: 'Proportional Reporting Ratio',
|
||||
shallMarkRowIfPrrTooHigh: true
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user