File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/components-examples/material/table/table-row-context Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
< table mat-table [dataSource] ="data " class ="mat-elevation-z8 ">
2
- <!-- Index Column -->
2
+ <!-- Implicit Column -->
3
3
< ng-container matColumnDef ="$implicit ">
4
4
< th mat-header-cell *matHeaderCellDef > $implicit </ th >
5
5
< td mat-cell *matCellDef ="let data "> {{data}} </ td >
11
11
< td mat-cell *matCellDef ="let index = index "> {{index}} </ td >
12
12
</ ng-container >
13
13
14
- <!-- Index Column -->
14
+ <!-- Count Column -->
15
15
< ng-container matColumnDef ="count ">
16
16
< th mat-header-cell *matHeaderCellDef > count </ th >
17
17
< td mat-cell *matCellDef ="let count = count "> {{count}} </ td >
18
18
</ ng-container >
19
19
20
- <!-- Index Column -->
20
+ <!-- First Column -->
21
21
< ng-container matColumnDef ="first ">
22
22
< th mat-header-cell *matHeaderCellDef > first </ th >
23
23
< td mat-cell *matCellDef ="let first = first "> {{first}} </ td >
24
24
</ ng-container >
25
25
26
- <!-- Index Column -->
26
+ <!-- Last Column -->
27
27
< ng-container matColumnDef ="last ">
28
28
< th mat-header-cell *matHeaderCellDef > last </ th >
29
29
< td mat-cell *matCellDef ="let last = last "> {{last}} </ td >
30
30
</ ng-container >
31
31
32
- <!-- Index Column -->
32
+ <!-- Even Column -->
33
33
< ng-container matColumnDef ="even ">
34
34
< th mat-header-cell *matHeaderCellDef > even </ th >
35
35
< td mat-cell *matCellDef ="let even = even "> {{even}} </ td >
36
36
</ ng-container >
37
37
38
- <!-- Index Column -->
38
+ <!-- Odd Column -->
39
39
< ng-container matColumnDef ="odd ">
40
40
< th mat-header-cell *matHeaderCellDef > odd </ th >
41
41
< td mat-cell *matCellDef ="let odd = odd "> {{odd}} </ td >
You can’t perform that action at this time.
0 commit comments