使用Isotop过滤日期
16lz
2021-01-22
I have a table sorted and filtered by isotope JS. I want to add a filter by date, to show the results between two dates selected by a datepicker.
Any idea how to do this ?
我有一张表,按同位素JS排序和过滤。我想按日期添加过滤器,以显示由datepicker选择的两个日期之间的结果。知道怎么做吗?
Thank you
1 个解决方案
#1
0
use custom filter function -
使用自定义过滤功能 -
$grid.isotope({ filter: function() {
var date= $(this).find('.date').text();
return (date comparison here);
} })