Datatable says loading even when there's no data to load
Datatable says loading even when there's no data to load
FabProKris
Posts: 1Questions: 1Answers: 0
I have a datatable that continues to say 'loading' when there is no results to load, how do I get that to say no records found.
This discussion has been closed.
Answers
return an empty array of objects, or set data:[]
var table = $('#example').DataTable({data:[]});
visit https://datatables.net/reference/option/language