{hero}

fixedColumns.leftColumns

Since: FixedColumns 3.1.0

Number of columns to fix to the left of the table.
Please note - this property requires the FixedColumns extension for DataTables.

Description

FixedColumns, by default, will fix only the left most column in place, however it is also possible to fix two or more columns in place as required by your application. The number of columns to fix in place is defined by this parameter, which is simply an integer that indicates how many columns should be fixed.

Type

integer

Description:

The number of columns on the left hand side of the table to fix in place.

Default

  • Value: 1

The first column on the left of the table will be fixed in place.

Examples

Fixed two columns to the left of the table:

$('#example').DataTable( {
	fixedColumns: {
		leftColumns: 2
	}
} );

Fix no columns on the left of the table:

$('#example').DataTable( {
	fixedColumns: {
		leftColumns: 0,
		rightColumns: 1
	}
} );