Selection state for dynamic table rows

- visual indication of the selected row
- toggling selection of the row
This commit is contained in:
Denys Vuika
2016-10-17 17:07:34 +01:00
committed by Vito Albano
parent 7a08a9d29d
commit 8542999f0e
6 changed files with 68 additions and 7 deletions

View File

@@ -12,10 +12,12 @@
</tr>
</thead>
<tbody>
<tr *ngFor="let row of content.rows">
<tr *ngFor="let row of content.rows"
[class.dynamic-table-widget__row-selected]="row.selected">
<td *ngFor="let column of content.visibleColumns"
class="mdl-data-table__cell--non-numeric">
{{row[column.id]}}
class="mdl-data-table__cell--non-numeric"
(click)="onRowClicked(row)">
{{row.value[column.id]}}
</td>
</tr>
</tbody>