{hero}

fixedColumns.start

Since: FixedColumns 5.0.0

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

Description

This option is used to define the number of fixed columns at the start of the table. By default this is a single column, but you can choose to fix two or more in place, as required by your table.

Please note that this option is independent of the text direction of the table - i.e. it will fix columns to the right of the table for right-to-left languages.

Columns that are not visible will be ignored.

Type

integer

Description:

The number of columns on the start of the table to fix in place.

Default

  • Value: 1

Fix the first column of the table in place.

Examples

Fixed two columns to the start of the table:

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

Fix no columns on the start of the table:

new DataTable('#myTable', {
	fixedColumns: {
		start: 0,
		end: 1
	}
});