{hero}

fixedColumns.left

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

This option can be used to set the number of columns that will be fixed to the left hand-side of a table.

As of FixedColumns 5 it is text direction aware and will always fixed to the left of the table, regardless of the text direction.

fixedColumns.start is generally preferred over this option as it is independent of text direction.

Type

integer

Description:

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

Default

  • Value: undefined

Examples

Fixed two columns to the left of the table:

new DataTable('#myTable', {
	fixedColumns: {
		left: 2
	}
});

Fix no columns on the left of the table:

new DataTable('#myTable', {
	fixedColumns: {
		left: 0,
		right: 1
	}
});