Open adrienyhuel opened 4 years ago
@adrienyhuel what about the case 'range_date':
inside exFilterColumn
function ?
@adrienyhuel what about the
case 'range_date':
insideexFilterColumn
function ?
@vedmack the case range_date comes with "filter_type" = "range_date", and it makes two calendars. In order to use the "daterangepicker", we need to use only one field (and that's why in your sample, you put filter_type: "date").
"daterangepicker" was added in #537, and this is wonderful :)
But it doesn't works really well with server side Datatables. As it is a "date" filter_type, it send the raw value to ajax (ex : "YYYY-MM-DD - YYYY-MM-DD").
For a range of date, server side expect "YYYY-MM-DD-yadcf_delim-YYYY-MM-DD".
I modified your js this way to make it work :
function "exFilterColumn", case "date" https://github.com/vedmack/yadcf/blob/2c85f071ffcc526b0b93580459a5b00ba0c8167d/src/jquery.dataTables.yadcf.js#L5204
Do you think it's the right way to make it work ?