[ADF-3267] changed true/false values showed with a readonly checkbox (#3524)

This commit is contained in:
Vito
2018-06-26 10:49:09 +01:00
committed by Eugenio Romano
parent d9c792230f
commit f7aaafed86

View File

@@ -17,7 +17,13 @@
[class.adf-dynamic-table-widget__row-selected]="row.selected" (keyup)="onKeyPressed($event, row)"> [class.adf-dynamic-table-widget__row-selected]="row.selected" (keyup)="onKeyPressed($event, row)">
<td *ngFor="let column of content.visibleColumns" <td *ngFor="let column of content.visibleColumns"
(click)="onRowClicked(row)"> (click)="onRowClicked(row)">
<span *ngIf="column.type !== 'Boolean' else checkbox">
{{ getCellValue(row, column) }} {{ getCellValue(row, column) }}
</span>
<ng-template #checkbox>
<mat-checkbox disabled [checked]="getCellValue(row, column)">
</mat-checkbox>
</ng-template>
</td> </td>
</tr> </tr>
</tbody> </tbody>