Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- table.dataTable
- ({
- aoColumnDefs:
- [{
- aTargets : [checkbox_column_no],
- sClass : "center",
- mRender : function (data)
- {
- if (data == '1')
- return '<input type="checkbox" class="checkboxes"
- checked="checked" value="1">';
- else
- return '<input type="checkbox" class="checkboxes"
- value="0">';
- },
- sWidth : '24px',
- bAutoWidth : false,
- bSortable : false,
- orderable : false
- }],
- lengthChange : enable_records_per_page_menu,
- lengthMenu : [[10, 25, 50, 100], [10, 25, 50, 100]],
- pagelength : records_per_page,
- pagingType : "bootstrap_full_number",
- language :
- {
- lengthMenu: " _MENU_ records",
- paginate :
- {
- previous : "Prev",
- next : "Next",
- last : "Last",
- first : "First"
- }
- },
- order : [],
- processing : true,
- serverSide : true,
- deferRender : true,
- iDeferLoading : 0,
- drawCallback : function ()
- {
- // code here
- },
- dom: 'T<"clear">lfrtip',
- tableTools: {
- sSwfPath: "<?php echo site_url() . 'correct path"
- },
- ajax :
- {
- type : "POST",
- url : get_records_url,
- data : function (dt_data)
- {
- // code here
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement