Adding callback function on filter and get filtered data array
Adding callback function on filter and get filtered data array
I'm using Datatable 1.10.4.
I'm sending the data array to the table to populate the table, Initialization is as follows:
table = $('#dashboard-user-list-table').DataTable({
"data":window.MyApp.Model.userModel.getUsers(),
---
---
});
I have filter set in all column. I want to add a on filter callback function and get the filtered data array and do some stuff.
Even without callback function , is there any way to get a Filtered data array?. (Basically i need to get the array which i passed as a sourced data which is visible on page)
Can you please suggest me how to do it?