marking rows where PRR is too high
This commit is contained in:
@@ -44,10 +44,23 @@ class PrrByVaccineTable {
|
|||||||
.outerHTML,
|
.outerHTML,
|
||||||
targets: [this.#getColumnIndex('Proportional Reporting Ratio')]
|
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) {
|
#getColumnIndex(columnName) {
|
||||||
switch (columnName) {
|
switch (columnName) {
|
||||||
case 'Vaccine':
|
case 'Vaccine':
|
||||||
|
|||||||
@@ -4922,4 +4922,8 @@ table thead .checkbox.radio { margin-top:-7px;margin-top:-21px; }
|
|||||||
.bar {
|
.bar {
|
||||||
height: 3px;
|
height: 3px;
|
||||||
background-color: #1a73e8;
|
background-color: #1a73e8;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.dataTable.display tbody tr.prrTooHigh {
|
||||||
|
background-color: rgba(255, 0, 0, 10%);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user