Skip to content

Commit 306b3c4

Browse files
committed
fix(app.component): fix selection display
add display for selected items count
1 parent a745688 commit 306b3c4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/mat-advanced-table-examples/src/app/app.component.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,16 @@ <h4 class="mat-title">
3939
<mat-card>
4040
<mat-card-title>
4141
Selection usage
42+
<small>
43+
{{ table?.selection.selected.length }} item(s) selected
44+
</small>
4245
<button (click)="toggleData()" mat-raised-button>
4346
Toggle Data
4447
</button>
4548
</mat-card-title>
4649
<mat-card-content>
4750
<mat-advanced-table
51+
#table
4852
[loading]="isLoading"
4953
[data]="data$ | async"
5054
[columns]="columns"
@@ -59,7 +63,7 @@ <h4 class="mat-title">
5963
<mat-card-title>
6064
Usage with custom templates
6165
<button (click)="toggleData()" mat-raised-button>
62-
Toggle Data {{ isLoading }}
66+
Toggle Data
6367
</button>
6468
</mat-card-title>
6569
<mat-card-content>

0 commit comments

Comments
 (0)