Advertisement
Guest User

Untitled

a guest
Nov 21st, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. table.dataTable
  2. ({
  3. aoColumnDefs:
  4. [{
  5. aTargets : [checkbox_column_no],
  6. sClass : "center",
  7. mRender : function (data)
  8. {
  9. if (data == '1')
  10. return '<input type="checkbox" class="checkboxes"
  11. checked="checked" value="1">';
  12. else
  13. return '<input type="checkbox" class="checkboxes"
  14. value="0">';
  15. },
  16. sWidth : '24px',
  17. bAutoWidth : false,
  18. bSortable : false,
  19. orderable : false
  20. }],
  21. lengthChange : enable_records_per_page_menu,
  22. lengthMenu : [[10, 25, 50, 100], [10, 25, 50, 100]],
  23. pagelength : records_per_page,
  24. pagingType : "bootstrap_full_number",
  25. language :
  26. {
  27. lengthMenu: " _MENU_ records",
  28. paginate :
  29. {
  30. previous : "Prev",
  31. next : "Next",
  32. last : "Last",
  33. first : "First"
  34. }
  35. },
  36. order : [],
  37. processing : true,
  38. serverSide : true,
  39. deferRender : true,
  40. iDeferLoading : 0,
  41. drawCallback : function ()
  42. {
  43. // code here
  44. },
  45. dom: 'T<"clear">lfrtip',
  46. tableTools: {
  47. sSwfPath: "<?php echo site_url() . 'correct path"
  48. },
  49. ajax :
  50. {
  51. type : "POST",
  52. url : get_records_url,
  53. data : function (dt_data)
  54. {
  55. // code here
  56. }
  57. }
  58. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement