I need create a custom attribute for my datatables instance, and I need keep this value, ex:
When I create an instance:
$('#table').dataTable({
//common attributes
ajax: 'url.json',
columns: [...],
//custom attribute
hasSomeValueHere: 'helloword'
});
and I would like to keep it on settings of datatable, so if I check it will be there:
$('#table').dataTable({
//common attributes
...
fnDrawCallback: function(oSettings){
alert(oSettings.hasSomeValueHere); //helloword
}
});
There any way to extends datatable this way? Thanks