displaying PrrByVaccineTable

This commit is contained in:
frankknoll
2023-10-12 10:36:07 +02:00
parent aed6d1380a
commit b3192214fe
6 changed files with 17872 additions and 17470 deletions

View File

@@ -0,0 +1,22 @@
class PageInitializer {
static initializePage({ symptomSelectElement, prrByVaccineTableElement }) {
const prrByVaccineTableView = new PrrByVaccineTableView(prrByVaccineTableElement);
PageInitializer.#initializeSymptomSelectElement(
{
symptomSelectElement: symptomSelectElement,
onSymptomSelected: symptom => prrByVaccineTableView.displayPrrByVaccineTable4Symptom(symptom)
});
}
static #initializeSymptomSelectElement({ symptomSelectElement, onSymptomSelected }) {
symptomSelectElement.select2({ minimumInputLength: 4 });
symptomSelectElement.on(
'select2:select',
function (event) {
const symptom = event.params.data.id;
onSymptomSelected(symptom);
});
symptomSelectElement.select2('open');
}
}