aslagle / reactive-table

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

Compare two columns data in custom filter #480

Open franciscohanna92 opened 6 years ago

franciscohanna92 commented 6 years ago

Hi! First of all, great package!

I was trying to make a custom filter that would compare two columns. Is there anyway that I could achieve this?

I'm working with the checkboxFilter example. When I check the box I want to display only those where the value of column 1 is greater than the value of column 2.

aslagle commented 6 years ago

Sorry, the filtering's only set up to work with one column at a time.

franciscohanna92 commented 6 years ago

Yes, I went trough the code and realized that. I achieved what I want it by denormalizing this comparison upon insert.

Thanks anyway and great package!

aslagle commented 6 years ago

Glad you figured something out!