Skip to content

Commit

Permalink
chore: add custom filter logic
Browse files Browse the repository at this point in the history
  • Loading branch information
katharinawuensche committed Nov 4, 2024
1 parent 6f3d3cd commit 0a6ae86
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/geojson-table-window-content.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ const columns = computed(() => {
] ?? {},
);
},
filterFn: (row, columnId, filterValue) => {
const filter = Object.values(filterValue).some((val) =>
(row.getValue(columnId) as Array<string>).includes(String(val)),
);
return filter;
},
};
}),
});
Expand Down

0 comments on commit 0a6ae86

Please sign in to comment.