Classes (0) | Namespaces (0) |
Properties (0) | Static properties (4) |
Methods (0) | Static methods (0) |
Events (0) |
Properties (0) | Static properties (4) |
Methods (0) | Static methods (0) |
Events (0) |
FixedColumns default settings for initialisation
Draw callback function which is called when FixedColumns has redrawn the fixed assets
Number of left hand columns to fix in position
Number of right hand columns to fix in position
Height matching algorthim to use. This can be "none" which will result in no height matching being applied by FixedColumns (height matching could be forced by CSS in this case), "semiauto" whereby the height calculation will be performed once, and the result cached to be used again (fnRecalculateHeight can be used to force recalculation), or "auto" when height matching is performed on every draw (slowest but must accurate)
Draw callback function which is called when FixedColumns has redrawn the fixed assets
var table = $('#example').dataTable( { "scrollX": "100%" } ); new $.fn.dataTable.fixedColumns( table, { "drawCallback": function () { alert( "FixedColumns redraw" ); } } );
Number of left hand columns to fix in position
var = $('#example').dataTable( { "scrollX": "100%" } ); new $.fn.dataTable.fixedColumns( table, { "leftColumns": 2 } );
Number of right hand columns to fix in position
var table = $('#example').dataTable( { "scrollX": "100%" } ); new $.fn.dataTable.fixedColumns( table, { "rightColumns": 1 } );
Height matching algorthim to use. This can be "none" which will result in no height matching being applied by FixedColumns (height matching could be forced by CSS in this case), "semiauto" whereby the height calculation will be performed once, and the result cached to be used again (fnRecalculateHeight can be used to force recalculation), or "auto" when height matching is performed on every draw (slowest but must accurate)
var table = $('#example').dataTable( { "scrollX": "100%" } ); new $.fn.dataTable.fixedColumns( table, { "heightMatch": "auto" } );