#227 improved styling support for columns

- support for custom css class for entire column (th + td) including
cell values
- demo for responsive columns behaviour
This commit is contained in:
Denys Vuika
2016-06-20 16:28:31 +01:00
parent d26a66f9df
commit 4129210639
7 changed files with 89 additions and 11 deletions

View File

@@ -15,8 +15,8 @@
[class.mdl-data-table__header--sorted-ascending]="sorting.key === col.source && sorting.direction === 'asc'"
[class.mdl-data-table__header--sorted-descending]="sorting.key === col.source && sorting.direction === 'desc'"
(click)="onColumnHeaderClick(col)">
<span *ngIf="col.srTitle" class="sr-only">{{col.srTitle}}</span>
<span *ngIf="col.title">{{col.title}}</span>
<span *ngIf="col.srTitle" class="cell-value sr-only">{{col.srTitle}}</span>
<span *ngIf="col.title" class="cell-value">{{col.title}}</span>
</th>
<!-- Actions -->
<th>