{hero}

fixedColumns.rightColumns

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.

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: {
		rightColumns: 1
	}
} );

Fix no columns on the left of the table:

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