Last active
December 27, 2021 14:31
-
-
Save deyvicode/f4caa2f2734d5b0e11cd7c1561a171b4 to your computer and use it in GitHub Desktop.
Jquery Datatable with data by ajax
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
$('#table').DataTable({ | |
'processing': true, | |
'serverSide': true, | |
'destroy': true, | |
'ajax': { | |
'url': '/route', | |
'type': 'GET' | |
}, | |
'columns': [ | |
{ data: 'column1' }, | |
{ data: 'column2' }, | |
{ data: 'actions'} | |
] | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment