I'm trying to set a custom property and be able to access/edit it later. Is this even possible, i've seen in older version one can use fnSettings but how do I use this in 1.10.5?
$('#table').DataTable({
customProp: 'Hello World'
});
Then with a button click 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: Cannot read property 'customProp' of undefined
Does anyone know how I can do this?