I want to change the serverSide property to false if the condition is satisfied, how to change this from a table created with Datatable?
var tabela = $("#lista-dados").DataTable({
"processing": false,
"serverSide": true,
"autoWidth": true,
"ajax": {
"type": "POST",
"data": ws_datatable,
"url": "./functions/ws_datatable.php"
},
"lengthMenu": [[10, 25, 50, 100, 250, 500, -1]],
"pageLength": 10,
"bStateSave": true,
"paging": true,
"dom": "lBfrtipr",
});
It would be something I wanted to do
if (x == 2) {
"serverSide": false,
}