Classes (0) | Namespaces (0) |
Properties (0) | Static properties (8) |
Methods (0) | Static methods (0) |
Events (0) |
Properties (0) | Static properties (8) |
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
Width to set for the width of the left fixed column(s) - note that the behaviour of this property is directly effected by the sLeftWidth property. If not defined then this property is calculated automatically from what has been assigned by DataTables.
Number of right hand columns to fix in position
Width to set for the width of the right fixed column(s) - note that the behaviour of this property is directly effected by the sRightWidth property. If not defined then this property is calculated automatically from what has been assigned by DataTables.
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)
Type of left column size calculation. Can take the values of "fixed", whereby the iLeftWidth value will be treated as a pixel value, or "relative" for which case iLeftWidth will be treated as a percentage value.
Type of right column size calculation. Can take the values of "fixed", whereby the iRightWidth value will be treated as a pixel value, or "relative" for which case iRightWidth will be treated as a percentage value.
Draw callback function which is called when FixedColumns has redrawn the fixed assets
var oTable = $('#example').dataTable( { "sScrollX": "100%" } ); new FixedColumns( oTable, { "fnDrawCallback": function () { alert( "FixedColumns redraw" ); } } );
Number of left hand columns to fix in position
var oTable = $('#example').dataTable( { "sScrollX": "100%" } ); new FixedColumns( oTable, { "iLeftColumns": 2 } );
Width to set for the width of the left fixed column(s) - note that the behaviour of this property is directly effected by the sLeftWidth property. If not defined then this property is calculated automatically from what has been assigned by DataTables.
var oTable = $('#example').dataTable( { "sScrollX": "100%" } ); new FixedColumns( oTable, { "iLeftWidth": 100 // pixels } );
Number of right hand columns to fix in position
var oTable = $('#example').dataTable( { "sScrollX": "100%" } ); new FixedColumns( oTable, { "iRightColumns": 1 } );
Width to set for the width of the right fixed column(s) - note that the behaviour of this property is directly effected by the sRightWidth property. If not defined then this property is calculated automatically from what has been assigned by DataTables.
var oTable = $('#example').dataTable( { "sScrollX": "100%" } ); new FixedColumns( oTable, { "iRightWidth": 200 // pixels } );
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 oTable = $('#example').dataTable( { "sScrollX": "100%" } ); new FixedColumns( oTable, { "sHeightMatch": "auto" } );
Type of left column size calculation. Can take the values of "fixed", whereby the iLeftWidth value will be treated as a pixel value, or "relative" for which case iLeftWidth will be treated as a percentage value.
var oTable = $('#example').dataTable( { "sScrollX": "100%" } ); new FixedColumns( oTable, { "sLeftWidth": "relative", "iLeftWidth": 10 // percentage } );
Type of right column size calculation. Can take the values of "fixed", whereby the iRightWidth value will be treated as a pixel value, or "relative" for which case iRightWidth will be treated as a percentage value.
var oTable = $('#example').dataTable( { "sScrollX": "100%" } ); new FixedColumns( oTable, { "sRightWidth": "relative", "iRightWidth": 10 // percentage } );