{hero}

fixedColumns.right

Since: FixedColumns 3.1.0

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

Description

FixedColumns can fix columns to both the left and right hand sides of the DataTable. By default only a single left hand column is fixed in place, but this parameter provides the option to specify how many columns should be fixed on the right. This is a simple integer that indicates that number of columns. FixedColumns will then use this value to fix that many visible columns to the left side of the table. Columns that are not visible will be ignored.

This option replaces the deprecated fixedColumns.rightColumns.

Type

integer

Description:

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

Default

  • Value: 0

No columns will be fixed to the right hand side of the table.

Examples

Left and right columns fixed:

$('#example').DataTable( {
	fixedColumns: {
		right: 1
	}
} );

Fix no columns on the left of the table:

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