@if (item[expandableItemKey]?.length) {
@for (col of expandColumns; track col.header) {
|
{{ col.header }}
|
}
@for (col of expandColumns; track col.field) {
{{ item.name }}
@if (col.type === "index") {
{{ i * (currentPage || 1) + 1 }}
} @else if (col.type === "thumbnail") {
@if (item[col.field]) {
![]()
}
} @else if (getTemplate(col)) {
} @else if (col.canCopy) {
} @else {
{{ getCell(item, col) }}
}
|
}
|
|
} @else {
@for (col of expandColumns; track $index) {
}
}