aslagle / reactive-table

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

Multiple filters - logical behavior #446

Open bvialade opened 7 years ago

bvialade commented 7 years ago

When I create multiple own filters, using ReactiveTable.Filter, the reactive-table displayed is filled with a logical "AND" of filters (data is in the both filtered results). Is there an alternative solution to get a "OR" result ? (data is at least in one of filtered result).

aslagle commented 7 years ago

Yes, you can put filterOperator: "$or" in the settings, either on the client or server depending on if you are using server-side filtering.

bvialade commented 7 years ago

Thanks !

bvialade commented 7 years ago

Bonus question: Can we combine $or and $and filters operators in my filter list, or the filterOperator is set for all filters ? Thanks,

aslagle commented 7 years ago

Sorry, no - it's one setting for all the filters.