@for (col of alignedColumns(); track col.key) {
|
@switch (col.type) {
@case ('badge') {
@if (isErrorRow(row)) {
{{ cellText(row, col.key) }}
} @else {
{{ cellText(row, col.key) }}
}
}
@case ('currency') {
{{ formatCurrency(row[col.key]) }}
}
@case ('date') {
{{ cellText(row, col.key) }}
}
@case ('link') {
{{ cellText(row, col.key) }}
}
@case ('toggle') {
}
@default {
{{ cellText(row, col.key) }}
}
}
|
}
|
} @empty {