marking rows where PRR is too high

This commit is contained in:
frankknoll
2023-10-12 11:32:55 +02:00
parent 5e925e8c55
commit b3a9946b6f
2 changed files with 18 additions and 1 deletions

View File

@@ -44,10 +44,23 @@ class PrrByVaccineTable {
.outerHTML,
targets: [this.#getColumnIndex('Proportional Reporting Ratio')]
}
]
],
createdRow: (row, data) => {
this.#markRowIfPrrTooHigh(
{
prr: data[this.#getColumnIndex('Proportional Reporting Ratio')],
row: row
});
}
});
}
#markRowIfPrrTooHigh({ prr, row }) {
if (prr > 1.0) {
$(row).addClass('prrTooHigh');
}
}
#getColumnIndex(columnName) {
switch (columnName) {
case 'Vaccine':

View File

@@ -4922,4 +4922,8 @@ table thead .checkbox.radio { margin-top:-7px;margin-top:-21px; }
.bar {
height: 3px;
background-color: #1a73e8;
}
table.dataTable.display tbody tr.prrTooHigh {
background-color: rgba(255, 0, 0, 10%);
}