Datatable only works on reload
Datatable only works on reload
Simona
Posts: 3Questions: 1Answers: 0
I am using datatable in Laravel-VueJs project. If I reload the page the table works, but without reload it does not.
Any suggestions on how to get the table to display properly without having to reload?
This discussion has been closed.
Answers
It sounds like a timing issue - is the DataTable initialised happening before the table or the table's data is in the DOM?
Colin
@colin I am not sure that I understand your question
I don't think that is a timing issue cuz I've tried
setTimeout(function(){
$(document).ready( function () {
$('#myTable').DataTable();
} );
},1000);
and nothing changes
We're going to need to see it to progress this. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Colin