@@ -7,11 +7,11 @@ to tabular data.
77
88To add sorting behavior and styling to a set of table headers, add the ` <mat-sort-header> ` component
99to each header and provide an ` id ` that will identify it. These headers should be contained within a
10- parent element with the ` matSort ` directive, which will emit an ` matSortChange ` event when the user
10+ parent element with the ` matSort ` directive, which will emit a ` matSortChange ` event when the user
1111 triggers sorting on the header.
1212
1313Users can trigger the sort header through a mouse click or keyboard action. When this happens, the
14- ` matSort ` will emit an ` matSortChange ` event that contains the ID of the header triggered and the
14+ ` matSort ` will emit a ` matSortChange ` event that contains the ID of the header triggered and the
1515direction to sort (` asc ` or ` desc ` ).
1616
1717#### Changing the sort order
@@ -23,18 +23,18 @@ To reverse the sort order for all headers, set the `matSortStart` to `desc` on t
2323directive. To reverse the order only for a specific header, set the ` start ` input only on the header
2424instead.
2525
26- To prevent the user from clearing the sort sort state from an already sorted column, set
26+ To prevent the user from clearing the sort state from an already sorted column, set
2727` matSortDisableClear ` to ` true ` on the ` matSort ` to affect all headers, or set ` disableClear ` to
2828` true ` on a specific header.
2929
3030#### Disabling sorting
3131
3232If you want to prevent the user from changing the sorting order of any column, you can use the
33- ` matSortDisabled ` binding on the ` mat-sort ` , or the ` disabled ` on an single ` mat-sort-header ` .
33+ ` matSortDisabled ` binding on the ` mat-sort ` , or the ` disabled ` on a single ` mat-sort-header ` .
3434
3535#### Using sort with the mat-table
3636
37- When used on an ` mat-table ` header, it is not required to set an ` mat-sort-header ` id on because
37+ When used on a ` mat-table ` header, it is not required to set a ` mat-sort-header ` id on because
3838by default it will use the id of the column.
3939
4040<!-- example(table-sorting) -->
0 commit comments