I am trying to set a custom property and be able to access it later. Is it possible, as I saw in the older version, you can use fnSettings, but how to use it in 1.10.5?
$('#table').DataTable({
customProp: 'Hello World'
});
Then, by pressing a button, I thought I could do the following:
$('.test').on('click', function(e){
var table = $('#table').DataTable();
console.log(table.settings.oInit.customProp);
}
However, I get: Uncaught TypeError: Can't read customProp property from undefined
Does anyone know how I can do this?
source
share