Début pour afficher une popin affichant les
images dans le profil utilisateur.
This commit is contained in:
@@ -28,7 +28,9 @@
|
||||
|
||||
<ng-container matColumnDef="data">
|
||||
<th mat-header-cell *matHeaderCellDef style="text-align: center;">Image</th>
|
||||
<td mat-cell *matCellDef="let element" style="text-align: center;"><img src="{{element.data}}" alt="toto" style="width:50%;"></td>
|
||||
<td mat-cell *matCellDef="let element" style="text-align: center;">
|
||||
<img src="{{element.data}}" alt="image" style="width:50%;" (click)="openModal(element)">
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
<tr mat-header-row *matHeaderRowDef="displayedColumns; sticky: true"></tr>
|
||||
@@ -37,3 +39,10 @@
|
||||
|
||||
<mat-paginator [length]="resultsLength" [pageSize]="10"></mat-paginator>
|
||||
</div>
|
||||
|
||||
<div id="imgModal" class="slide-modal" [ngStyle]="{'display': (showPopin === true) ? 'block' : 'none'}">
|
||||
<span class="close cursor" (click)="closeModal()">×</span>
|
||||
<div class="slide-modal-content">
|
||||
<img class="images" src="{{ popinImage }}" (click)="closeModal()" style="width: 100%; display: table;">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user