marking rows where PRR is too high
This commit is contained in:
@@ -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':
|
||||
|
||||
@@ -4923,3 +4923,7 @@ table thead .checkbox.radio { margin-top:-7px;margin-top:-21px; }
|
||||
height: 3px;
|
||||
background-color: #1a73e8;
|
||||
}
|
||||
|
||||
table.dataTable.display tbody tr.prrTooHigh {
|
||||
background-color: rgba(255, 0, 0, 10%);
|
||||
}
|
||||
Reference in New Issue
Block a user