@if (data) {
@if (isHeaderVisible()) {
@if (enableDragRows) {
{{ 'ADF-DATATABLE.ACCESSIBILITY.DRAG' | translate }}
} @if (actions && actionsPosition === 'left') {
{{ 'ADF-DATATABLE.ACCESSIBILITY.ACTIONS' | translate }}
} @if (multiselect) {
{{ 'ADF-DATATABLE.ACCESSIBILITY.SELECT_ALL' | translate }}
} @for (col of getVisibleColumns(); track col.key; let lastColumn = $last; let columnIndex = $index) { @if (col.title || !showProvidedActions) {
@if (!col.header) { @if (col.title) { {{ col.title | translate }} } @if (col.subtitle) { ({{ col.subtitle | translate }}) } @if (col.title && col.sortable && isDraggingHeaderColumn) { {{ getSortLiveAnnouncement(col) | translate: { string: col.title | translate } }} } @if (!col.title && !col.sortable && !headerFilterTemplate) { } } @if (col.header) {
} @if (allowFiltering) { } @if (col.draggable) { @if (hoveredHeaderColumnIndex === columnIndex && !isResizing) { }
@if (isResizingEnabled && col.resizable && !lastColumn) {
}
} } @if ((actions && actionsPosition === 'right') || (mainActionTemplate && showMainDatatableActions)) {
@if (mainActionTemplate) {
{{ 'ADF-DATATABLE.ACCESSIBILITY.ACTIONS' | translate }} }
}
} @if (!loading) {
@if (!noPermission) { @if (enableDragRows) {
} @if (actions && actionsPosition === 'left') {
@for (action of getRowActions(row); track action.title) { }
} @if (multiselect) { {{ row.isSelected ? ('ADF-DATATABLE.ACCESSIBILITY.SELECTED' | translate) : '' }} } @for (col of getVisibleColumns(); track col.key; let lastColumn = $last) {
@if (!col.template) {
@switch (data.getColumnType(row, col)) { @case ('image') {
@if (isIconValue(row, col)) { } @else { @if (row.isSelected && !multiselect) { } @else { } }
} @case ('icon') {
} @case ('date') {
} @case ('location') {
} @case ('fileSize') {
} @case ('text') {
} @case ('boolean') {
} @case ('json') {
} @case ('amount') {
} @case ('number') {
} @default { } }
} @else {
}
} @if (!showProvidedActions && ((actions && actionsPosition === 'right') || (mainActionTemplate && showMainDatatableActions))) {
@if (actions && actionsPosition === 'right') { @for (action of getRowActions(row); track action.title) { } }
}
@if (isEmpty()) {
@if (noContentTemplate) { }
} } @else {
@if (noPermissionTemplate) { }
}
} @else {
@if (loadingTemplate) { }
}
}