Last active
May 25, 2018 14:51
-
-
Save bishoyAtif/60d3e4f3117bf3eb1e5d58f46ca27c1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready( function () { | |
$('#demo_table').DataTable({ | |
"processing": true, | |
"serverSide": true, | |
"ajax": '{{ route('ajax.posts.index') }}', | |
"columns": [ | |
{ "data": "id" }, | |
{ "data": "title" }, | |
{ "data": "user_name" }, | |
{ "data": "comments_num" }, | |
] | |
}); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment