[ADF-992] improve datatable styles according to UX guidelines (#2088)

* improve datatable style

* datatable and document list enhancements

- support to toggle header in DataTable
- Document List automatically hides header for empty content
This commit is contained in:
Denys Vuika
2017-07-15 22:31:14 +01:00
committed by Eugenio Romano
parent 7e357cfbae
commit be3d3d2aa3
5 changed files with 23 additions and 14 deletions

View File

@@ -1,7 +1,8 @@
<table
*ngIf="data"
class="full-width adf-data-table">
<thead>
<thead *ngIf="showHeader">
<tr>
<!-- Actions (left) -->
<th *ngIf="actions && actionsPosition === 'left'" class="actions-column">
@@ -27,8 +28,8 @@
</th>
</tr>
</thead>
<tbody>
<tbody>
<ng-container *ngIf="!loading">
<tr *ngFor="let row of data.getRows(); let idx = index" tabindex="0"
[class.is-selected]="row.isSelected"