Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var table;
- $(document).ready(function() {
- //datatables
- table = $('#table').DataTable({
- "paging" : false,
- "info": false,
- "searching": false,
- "processing": true, //Feature control the processing indicator.
- "serverSide": true, //Feature control DataTables'
- // Load data for the table's content from an Ajax source
- "ajax": {
- "url": "<?php echo site_url('pengadaan/ajax_list')?>",
- "type": "POST",
- data:function(d){
- d.kode = $("#kode").val();
- }
- },
- //Set column definition initialisation properties.
- "columnDefs": [
- {
- "targets": [ 0 ], //last column
- "orderable": false, //set not orderable
- },
- {
- "targets": [ 1 ], //last column
- "orderable": false, //set not orderable
- "visible": false,
- },
- ],
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement