Skip to content

Commit 79e9327

Browse files
committed
Comment on custom search/value mapping for column search
1 parent 7f2637d commit 79e9327

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

@angular-generic-table/core/pipes/gt-column-search.pipe.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ export class GtColumnSearchPipe<R extends GtRow> implements PipeTransform {
6565
// Include the row only if all fields match the search strings from each
6666
// input. (Empty search strings were excluded from the check earlier).
6767
const include = columnSearchTerms.every(term => {
68+
// Map the search/value function to that field if defined, otherwise
69+
// return the raw field value.
6870
row[term.id] = searchFunction[term.id]
6971
? searchFunction[term.id](row)
7072
: row[term.id];

0 commit comments

Comments
 (0)