Components

Table

Angular Material Table presents data in a structured grid format, making it easy to read and compare information.

Example

Below is an example of how BuilderKit restyles the Angular Material Table and gives it a more modern appearance.

Item Description
ID
Pos.
Name
Progress
Fruit
1 1 Elizabeth A. 75% lychee
2 2 Thomas T. 74% mango
3 3 Amelia A. 10% kiwi
4 4 Maia A. 83% lime
5 5 Mia C. 47% lychee
1 – 5 of 100
<table mat-table [dataSource]="dataSource" matSort>

<!-- Name Column -->
<ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef mat-sort-header>Name</th>
<td mat-cell *matCellDef="let row">{{ row.name }}</td>
</ng-container>

<!-- Progress Column -->
<ng-container matColumnDef="progress">
<th mat-header-cell *matHeaderCellDef mat-sort-header>Progress</th>
<td mat-cell *matCellDef="let row">{{ row.progress }}%</td>
</ng-container>

<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
</table>

<mat-paginator [pageSizeOptions]="[5, 10, 25]" />