{hero}

fixedColumns.rightColumns

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

Deprecated

As of v4.0.0 this feature has been deprecated. This feature has not yet been scheduled for removal, but its use is discouraged and the alternatives discussed below should be used.

As of FixedColumns 4.0.0 this option has been replaced by the fixedColumns.right option. There is no behaviour change here, but the naming is an improvement.

For now this option will continue to be supported, however it will be removed in the future. We encourage you to move instead to fixedColumns.right.

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 is deprecated and is replaced by the fixedColumns.right option.

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:

new DataTable('#myTable', {
	fixedColumns: {
		rightColumns: 1
	}
});

Fix no columns on the left of the table:

new DataTable('#myTable', {
	fixedColumns: {
		leftColumns: 0,
		rightColumns: 1
	}
});