We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e872b7 commit e172d19Copy full SHA for e172d19
src/lib/table/table-data-source.ts
@@ -95,7 +95,8 @@ export class MatTableDataSource<T> implements DataSource<T> {
95
* @param data Data object that is being accessed.
96
* @param sortHeaderId The name of the column that represents the data.
97
*/
98
- sortingDataAccessor = (data: T, sortHeaderId: string): string|number => {
+ sortingDataAccessor: ((data: T, sortHeaderId: string) => string|number) =
99
+ (data: T, sortHeaderId: string): string|number => {
100
const value: any = data[sortHeaderId];
101
102
// If the value is a string and only whitespace, return the value.
0 commit comments