ajax datatable loading code example
Example 1: datatable loading
Spinner Example
$(document).ready(function() {
var table = $('#table_id').DataTable({
"language": {
"processing": '<i class="fa fa-spinner fa-spin" style="font-size:24px;color:rgb(75, 183, 245);"></i>'
}
});
});
Example 2: datatable load data from ajax
JS
{
$('#myTable').DataTable( {
ajax: '/api/myData'
} );