SHARE
TWEET

Untitled

a guest May 19th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.   });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top