aslagle / reactive-table

A reactive table designed for Meteor
https://atmospherejs.com/aslagle/reactive-table
Other
328 stars 137 forks source link

filter multiple values for a field in Reactive table server side pagination #419

Open sakshi-kataria opened 8 years ago

sakshi-kataria commented 8 years ago

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

aslagle commented 8 years ago

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.