Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#users_list').DataTable({
- 'ordering':false,
- "processing": true, //Feature control the processing indicator.
- "serverSide": true, //Feature control DataTables' server-side processing mode.
- "order": [], //Initial no order.
- // Load data for the table's content from an Ajax source
- "ajax": {
- "url": "<?php echo site_url('admin/users/users_list')?>",
- "type": "POST"
- },
- //Set column definition initialisation properties.
- "columnDefs": [
- {
- "targets": [ 0 ], //last column
- "orderable": false, //set not orderable
- },
- ],
- "fnDrawCallback": function( oSettings ) {
- $('.toggle-demo').bootstrapToggle();
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement