reactive-table
reactive-table copied to clipboard
filter multiple values for a field in Reactive table server side pagination
Hello
I am facing a problem while working over filtration in Reactive table server side pagination If i want to filter multiple values for a field , i am not able to do, I tried it by passing array or object in template.fileter.set(object/Array) but it is not working Can you please provide any solution regarding this issue
The custom filtering isn't very sophisticated, but if the values are strings you can just make one string with all the values you want to match. So if you wanted to match "a", "b", or "c", you could set the filter to "a b c".
You can also create multiple filters and set filterOperator to $or in the table settings to make it match any of the filters instead of all of them.