Why filter() function not hiding/showing the row(s)?
Why filter() function not hiding/showing the row(s)?
![rannie](https://secure.gravatar.com/avatar/8685acb178b327a3a55b0a238995d817/?default=https%3A%2F%2Fvanillicon.com%2F8685acb178b327a3a55b0a238995d817_200.png&rating=g&size=120)
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
![<3 <3](https://datatables.net/forums/resources/emoji/heart.png)
https://datatables.net/examples/plug-ins/range_filtering
Thanks for your suggestion Allan!