-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtabla.component.html
More file actions
56 lines (49 loc) · 2.01 KB
/
tabla.component.html
File metadata and controls
56 lines (49 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<div class="container">
<mat-card class="mat-elevation-z4">
<mat-card-title> <span>Rick&MortyAPP</span></mat-card-title>
</mat-card>
</div>
<div class="container" style="width:70%; margin: 40px auto ">
<div class="mat-elevation-z4" >
<table mat-table [dataSource]="dataSource">
<!-- Id Column -->
<ng-container matColumnDef="id">
<th mat-header-cell *matHeaderCellDef> No. </th>
<td mat-cell *matCellDef="let element"> {{element.id}} </td>
</ng-container>
<!-- Nombre Column -->
<ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef> Nombre </th>
<td mat-cell *matCellDef="let element"> {{element.name}} </td>
</ng-container>
<!-- Genero Column -->
<ng-container matColumnDef="gender">
<th mat-header-cell *matHeaderCellDef> Genero </th>
<td mat-cell *matCellDef="let element"> {{element.gender}} </td>
</ng-container>
<!-- Tipo Column -->
<ng-container matColumnDef="type">
<th mat-header-cell *matHeaderCellDef> Tipo </th>
<td mat-cell *matCellDef="let element"> {{element.type}} </td>
</ng-container>
<!-- Estatus Column -->
<ng-container matColumnDef="status">
<th mat-header-cell *matHeaderCellDef> Estatus </th>
<td mat-cell *matCellDef="let element"> {{element.status}} </td>
</ng-container>
<!-- Ver (ficha de personaje) Column -->
<ng-container matColumnDef="ver">
<th mat-header-cell *matHeaderCellDef> Ver más </th>
<td mat-cell *matCellDef="let element" style="text-align: center;">
<a href="" style="color: white;" matTooltip = "Ver mas información">
<mat-icon>search</mat-icon>
</a>
</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="Columns"></tr>
<tr mat-row *matRowDef="let row; columns: Columns;"></tr>
</table>
<!-- Paginacion -->
<mat-paginator [pageSizeOptions]="[10]"></mat-paginator>
</div>
</div>