From 64c35c9b5e821bf32494f980aa147d1d6c845fb3 Mon Sep 17 00:00:00 2001 From: Andrew Seguin Date: Mon, 10 Apr 2023 13:59:44 -0600 Subject: [PATCH] fix(material/table): correct filterPredicate typo --- src/material/legacy-table/table-data-source.ts | 2 +- src/material/table/table-data-source.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/material/legacy-table/table-data-source.ts b/src/material/legacy-table/table-data-source.ts index f8a2e2cde882..c92f4b360031 100644 --- a/src/material/legacy-table/table-data-source.ts +++ b/src/material/legacy-table/table-data-source.ts @@ -14,7 +14,7 @@ import {_MatTableDataSource} from '@angular/material/table'; * sorting (using MatSort), and pagination (using paginator). * * Allows for sort customization by overriding sortingDataAccessor, which defines how data - * properties are accessed. Also allows for filter customization by overriding filterTermAccessor, + * properties are accessed. Also allows for filter customization by overriding filterPredicate, * which defines how row data is converted to a string for filter matching. * * **Note:** This class is meant to be a simple data source to help you get started. As such diff --git a/src/material/table/table-data-source.ts b/src/material/table/table-data-source.ts index 318eaa83b76b..f6d03924afb6 100644 --- a/src/material/table/table-data-source.ts +++ b/src/material/table/table-data-source.ts @@ -310,12 +310,12 @@ export class _MatTableDataSource< /** * Returns a filtered data array where each filter object contains the filter string within - * the result of the filterTermAccessor function. If no filter is set, returns the data array + * the result of the filterPredicate function. If no filter is set, returns the data array * as provided. */ _filterData(data: T[]) { // If there is a filter string, filter out data that does not contain it. - // Each data object is converted to a string using the function defined by filterTermAccessor. + // Each data object is converted to a string using the function defined by filterPredicate. // May be overridden for customization. this.filteredData = this.filter == null || this.filter === '' @@ -414,7 +414,7 @@ export class _MatTableDataSource< * sorting (using MatSort), and pagination (using MatPaginator). * * Allows for sort customization by overriding sortingDataAccessor, which defines how data - * properties are accessed. Also allows for filter customization by overriding filterTermAccessor, + * properties are accessed. Also allows for filter customization by overriding filterPredicate, * which defines how row data is converted to a string for filter matching. * * **Note:** This class is meant to be a simple data source to help you get started. As such