$('#mytable').dataTable().api().ajax.reload(); not access data api

$('#mytable').dataTable().api().ajax.reload(); not access data api

Gusta_Gusta_ Posts: 1Questions: 1Answers: 0

I have a breakpoint in the API that the data is retrieved, the API accessed when the page reloads, but if I click the button to refresh the data, it doesn't work, it doesn't show errors in the console either.

This code for the button is clicked:

$('#mytable').dataTable().api().ajax.reload(); $('#mytable').DataTable().draw();

Answers

Sign In or Register to comment.