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(), //sourced JS Array
"iDisplayLength": 4,
---
---
});
I want to add a onfilter 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)
Does the Datatables plugin allow me to do this? If so, I haven't found anything in the documentation that is intuitive.
Can you please suggest me how to do it?
refer JSFIDDLE
.dataTablenot.DataTable