Advertisement
deckoff

tableint

Dec 5th, 2013
437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var tableElement = $('#selectedSets');    
  2. var formatTable = tableElement.dataTable({
  3.         aoColumnDefs: [{
  4.             aTargets: [0], // Column number which needs to be modified
  5.             bSortable: false,
  6.             "bVisible": false,
  7.             sClass: 'centered-cell' // Optional - class to be applied to this table cell
  8.         }, {
  9.             aTargets: [4], // Column number which needs to be modified
  10.             sClass: 'centered-cell' // Optional - class to be applied to this table cell
  11.         }, {
  12.             aTargets: [5], // Column number which needs to be modified
  13.             sClass: 'centered-cell' // Optional - class to be applied to this table cell
  14.         }],
  15.  
  16.         bProcessing: true,
  17.         bAutoWidth: false,
  18.         "sAjaxSource": "DB/php/selectFormat.php",
  19.         "fnServerParams": function(aoData) {
  20.             aoData.push({
  21.                 "name": "sessionUser",
  22.                 "value": sessionUser
  23.             });
  24.         },
  25.         fnPreDrawCallback: function() {
  26.             // Initialize the responsive datatables helper once.
  27.             if (!responsiveHelper) {
  28.                 responsiveHelper = new ResponsiveDatatablesHelper(tableElement, breakpointDefinition);
  29.             }
  30.         },
  31.         fnRowCallback: function(nRow) {
  32.             responsiveHelper.createExpandIcon(nRow);
  33.         },
  34.         fnDrawCallback: function() {
  35.             if (typeof formatTable != 'undefined') {
  36.                         CalcStat(formatTable);
  37.                     }
  38.             responsiveHelper.respond();
  39.         },
  40.         fnInitComplete: function(oSettings) {
  41.  
  42.         }
  43.     })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement