Advertisement
Guest User

Untitled

a guest
May 19th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. $('#users_list').DataTable({
  2. 'ordering':false,
  3. "processing": true, //Feature control the processing indicator.
  4. "serverSide": true, //Feature control DataTables' server-side processing mode.
  5. "order": [], //Initial no order.
  6.  
  7. // Load data for the table's content from an Ajax source
  8. "ajax": {
  9. "url": "<?php echo site_url('admin/users/users_list')?>",
  10. "type": "POST"
  11. },
  12.  
  13. //Set column definition initialisation properties.
  14. "columnDefs": [
  15. {
  16. "targets": [ 0 ], //last column
  17. "orderable": false, //set not orderable
  18. },
  19. ],
  20.  
  21. "fnDrawCallback": function( oSettings ) {
  22. $('.toggle-demo').bootstrapToggle();
  23. }
  24.  
  25. });
  26. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement