mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
Revert "Added Tabbing to datatable and keyboard functionality (#2262)"
This reverts commit c05c882330161ef3d62b9677a4516c64e6d1b4a0.
This commit is contained in:
parent
6ccab88fd5
commit
e0ffeb0ea5
@ -18,11 +18,7 @@
|
|||||||
[attr.data-automation-id]="'auto_id_' + col.key"
|
[attr.data-automation-id]="'auto_id_' + col.key"
|
||||||
[class.adf-data-table__header--sorted-asc]="isColumnSorted(col, 'asc')"
|
[class.adf-data-table__header--sorted-asc]="isColumnSorted(col, 'asc')"
|
||||||
[class.adf-data-table__header--sorted-desc]="isColumnSorted(col, 'desc')"
|
[class.adf-data-table__header--sorted-desc]="isColumnSorted(col, 'desc')"
|
||||||
(click)="onColumnHeaderClick(col)"
|
(click)="onColumnHeaderClick(col)">
|
||||||
(keyup.enter)="onColumnHeaderClick(col)"
|
|
||||||
role="button"
|
|
||||||
tabindex="0"
|
|
||||||
title="{{col.title}}">
|
|
||||||
<span *ngIf="col.srTitle" class="sr-only">{{col.srTitle}}</span>
|
<span *ngIf="col.srTitle" class="sr-only">{{col.srTitle}}</span>
|
||||||
<span *ngIf="col.title">{{ col.title | translate}}</span>
|
<span *ngIf="col.title">{{ col.title | translate}}</span>
|
||||||
</th>
|
</th>
|
||||||
@ -35,15 +31,11 @@
|
|||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<ng-container *ngIf="!loading">
|
<ng-container *ngIf="!loading">
|
||||||
<tr *ngFor="let row of data.getRows(); let idx = index"
|
<tr *ngFor="let row of data.getRows(); let idx = index" tabindex="0"
|
||||||
[class.is-selected]="row.isSelected"
|
[class.is-selected]="row.isSelected"
|
||||||
[adf-upload]="allowDropFiles && rowAllowsDrop(row)" [adf-upload-data]="row"
|
[adf-upload]="allowDropFiles && rowAllowsDrop(row)" [adf-upload-data]="row"
|
||||||
[ngStyle]="rowStyle"
|
[ngStyle]="rowStyle"
|
||||||
[ngClass]="getRowStyle(row)"
|
[ngClass]="getRowStyle(row)">
|
||||||
(click)="onRowClick(row, $event)"
|
|
||||||
(keyup.enter)="onRowClick(row, $event)"
|
|
||||||
tabindex="0"
|
|
||||||
role="button">
|
|
||||||
|
|
||||||
<!-- Actions (left) -->
|
<!-- Actions (left) -->
|
||||||
<td *ngIf="actions && actionsPosition === 'left'">
|
<td *ngIf="actions && actionsPosition === 'left'">
|
||||||
@ -72,8 +64,7 @@
|
|||||||
class="adf-data-table-cell adf-data-table-cell--{{col.type || 'text'}} {{col.cssClass}}"
|
class="adf-data-table-cell adf-data-table-cell--{{col.type || 'text'}} {{col.cssClass}}"
|
||||||
(click)="onRowClick(row, $event)"
|
(click)="onRowClick(row, $event)"
|
||||||
[context-menu]="getContextMenuActions(row, col)"
|
[context-menu]="getContextMenuActions(row, col)"
|
||||||
[context-menu-enabled]="contextMenu"
|
[context-menu-enabled]="contextMenu">
|
||||||
tabindex="0">
|
|
||||||
<div *ngIf="!col.template" class="cell-container">
|
<div *ngIf="!col.template" class="cell-container">
|
||||||
<ng-container [ngSwitch]="col.type">
|
<ng-container [ngSwitch]="col.type">
|
||||||
<div *ngSwitchCase="'image'" class="cell-value">
|
<div *ngSwitchCase="'image'" class="cell-value">
|
||||||
@ -160,4 +151,4 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user