Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var tableElement = $('#selectedSets');
- var formatTable = tableElement.dataTable({
- aoColumnDefs: [{
- aTargets: [0], // Column number which needs to be modified
- bSortable: false,
- "bVisible": false,
- sClass: 'centered-cell' // Optional - class to be applied to this table cell
- }, {
- aTargets: [4], // Column number which needs to be modified
- sClass: 'centered-cell' // Optional - class to be applied to this table cell
- }, {
- aTargets: [5], // Column number which needs to be modified
- sClass: 'centered-cell' // Optional - class to be applied to this table cell
- }],
- bProcessing: true,
- bAutoWidth: false,
- "sAjaxSource": "DB/php/selectFormat.php",
- "fnServerParams": function(aoData) {
- aoData.push({
- "name": "sessionUser",
- "value": sessionUser
- });
- },
- fnPreDrawCallback: function() {
- // Initialize the responsive datatables helper once.
- if (!responsiveHelper) {
- responsiveHelper = new ResponsiveDatatablesHelper(tableElement, breakpointDefinition);
- }
- },
- fnRowCallback: function(nRow) {
- responsiveHelper.createExpandIcon(nRow);
- },
- fnDrawCallback: function() {
- if (typeof formatTable != 'undefined') {
- CalcStat(formatTable);
- }
- responsiveHelper.respond();
- },
- fnInitComplete: function(oSettings) {
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement