I am using the following to receive the processing event, without any success. I have tried both with and without .dataTable() ending but the result is the same - It is only called with the parameter processing == false.
I have also tried to set the DataTable option.processing to true without success. I wish to display a custom animation, any help.
$('#myTable').on('processing.dt', function (e, settings, processing) {
if (processing) {
console.log('it is loadding'); // **I do not get this**
} else {
console.log('it is not loadding'); // **I get this**
}
});
$('#myTable').on('processing.dt', function (e, settings, processing) {
if (processing) {
console.log('it is loadding'); // **I do not get this**
} else {
console.log('it is not loadding'); // **I get this**
}
}).dataTable();