We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da9bcb5 commit a4e2b7bCopy full SHA for a4e2b7b
1 file changed
src/index.ts
@@ -38,7 +38,20 @@ type SearchData = {
38
39
const dataUrl = "/iso-4217.json";
40
41
+function filterCountry(
42
+ headerValue: string,
43
+ dummyRowValue: any,
44
+ rowData: any,
45
+ filterParams: any
46
+) {
47
+ if (!headerValue || headerValue.length == 0) {
48
+ return true;
49
+ }
50
51
+ const rowValue = rowData.countries.join(", ");
52
+
53
+ return filterRegex(headerValue, rowValue, rowData, filterParams);
54
+}
55
56
function filterRegex(
57
headerValue: string,
@@ -377,7 +390,7 @@ async function main() {
377
390
field: "countries",
378
391
formatter: (cell) => cell.getValue().join(", "),
379
392
headerFilter: "input",
380
- headerFilterFunc: filterTags,
393
+ headerFilterFunc: filterCountry,
381
394
responsive: 0,
382
395
title: "Countries",
383
396
width: 375,
0 commit comments