I am using the jQuery DataTables plugin. I am trying to assign a parameter to my table, and use that parameter later in a custom search. I however cant find out how to store and get that parameter, and in my custom search i dont know how to get the table object. Here is my code to give a more clear idea of what i am trying to do:
jQuery.fn.dataTable.ext.search.push(
function( settings, data, dataIndex ) {
var myParam = ....;
console.log('i said: '+ myParam)
return true;
}
);
var table = jQuery('#myTable').DataTable();
table.myParam = 'hello';
table.draw();