refactoring

This commit is contained in:
frankknoll
2023-10-15 16:12:46 +02:00
parent 91c7bebeb5
commit 53c776ed78
7 changed files with 30 additions and 64 deletions

View File

@@ -54,14 +54,16 @@ class PrrByKeyTable {
targets: [this.#getColumnIndex(this.#prrColumnName)]
},
{
render: prr =>
NumberWithBarElementFactory
.createNumberWithBarElement(
{
number: prr,
barLenInPercent: prr / this.#sumPrrs * 100
})
.outerHTML,
render: (prr, type, row, meta) =>
(type === 'sort' || type === 'type') ?
parseFloat(prr) :
NumberWithBarElementFactory
.createNumberWithBarElement(
{
number: prr,
barLenInPercent: prr / this.#sumPrrs * 100
})
.outerHTML,
targets: [this.#getColumnIndex(this.#prrColumnName)]
}
],