Why filter() function not hiding/showing the row(s)?
Why filter() function not hiding/showing the row(s)?
rannie
Posts: 6Questions: 2Answers: 0
I tried this.
dt.rows().data().filter(() => {
return false
}).draw()
but rows are still visible.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I want to add a filter form in my data table.
I want the table to update when the user change the state of filter form.
just like this javascript array filter.
Any help? Thanks!
As the
filter()
documentation says:If you want to search the table and update the display for that search, you need to use
search()
or a search plug-in method.Allan
Here is exactly what i want
https://datatables.net/examples/plug-ins/range_filtering
Thanks for your suggestion Allan!