Implement server-side rendering of datatables in users#index
This commit is contained in:
parent
86ba2d005e
commit
caa63f9c1c
4 changed files with 66 additions and 31 deletions
|
|
@ -12,7 +12,14 @@ $(function () {
|
|||
pagingType: 'full_numbers',
|
||||
order: [[ 0, 'desc' ]]
|
||||
});
|
||||
|
||||
$('#userstable').DataTable({
|
||||
pagingType: 'full_numbers',
|
||||
processing: true,
|
||||
serverSide: true,
|
||||
sAjaxSource: $('#userstable').data('source'),
|
||||
aoColumns: [ null, { "bSortable": false }, null, null, { "bSortable": false }, { "bSortable": false }, { "bSortable": false }, { "bSortable": false }]
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue