fixedColumns.right
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
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
}
} );