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

How to filter date range?

Open ultrafellen opened this issue 9 years ago • 1 comments

Hello, I want to filter the database column with two date ranges. For an example from YYYY-MM-DD to YYYY-MM-DD, with datepicker. like this : http://yadcf-showcase.appspot.com/DOM_source.html

ultrafellen avatar Jul 15 '16 08:07 ultrafellen

You'll need to use custom filters for this.

I have an example of a date filter here: https://github.com/aslagle/reactive-table/blob/master/examples/advanced-filters/date_filter.js and https://github.com/aslagle/reactive-table/blob/master/examples/advanced-filters/date_filter.html

You can set the filter to gte or lte instead of a single date, as in https://github.com/aslagle/reactive-table/blob/master/examples/advanced-filters/greater_than_filter.js

aslagle avatar Jul 16 '16 01:07 aslagle