reactive-table icon indicating copy to clipboard operation
reactive-table copied to clipboard

Multiple filters - logical behavior

Open bvialade opened this issue 9 years ago • 4 comments

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).

bvialade avatar Nov 11 '16 16:11 bvialade

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

aslagle avatar Nov 12 '16 03:11 aslagle

Thanks !

bvialade avatar Nov 12 '16 10:11 bvialade

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

bvialade avatar Nov 12 '16 10:11 bvialade

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

aslagle avatar Nov 13 '16 23:11 aslagle