DataTable: improve globalFilterFields type #5212
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Hello everyone,
We needed to implement custom search logic for a table row property that was an array. The specs say that
globalFilterFields
is a type ofstring[]
but it seems that it also takes a function instead of string. So custom filtering actually works. The below example works just fine, eq.Reproducer
https://stackblitz.com/edit/husnuh-yncidy?file=src%2FApp.vue,src%2Fservice%2FCustomerService.js
PrimeVue version
^3.46.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
Chrome
Steps to reproduce the behavior
Check this example
id: 1001
) so the country is an array with two countries.Expected behavior
globalFilterFields type should be improved by adding a function to it.
Something like:
The text was updated successfully, but these errors were encountered: