DataTables-Keep-Conditions
DataTables-Keep-Conditions copied to clipboard
How to keep custom filters?
How do you keep custom filters? See https://datatables.net/examples/plug-ins/range_filtering.html.
It looks like I can add queries to window.location.hash separated by &, but it would be nice if I could integrate it with this plugin.
I've looked through some of the code to see if this is possible with the existing functions, but some guidance would be great. Thanks!
Hey Kevin,
Sorry for the delay, I had to take a break from personal coding projects for a while due to job requirements in my career.
This is a good feature request... Ill work on this and let you know!
Kevin,
I actually found that I need this feature as well. Im using this at my real job, and theres a custom search form that lets you search for a date range in a specific column, so that would be nice if I could make that happen as well.
Im not quite sure how to go about doing this... I was thinking about making the entire plugin a bit more modular, and having each "condition" (rowReorder, columnVis, etc) its own JS file, and then use something like RequireJS to load all of the condition "modules". This would allow people to code their own modules, then just throw the .js file into a folder, which would automatically get loaded.
If you have any ideas, let me know!