{hero}

fixedColumns.end

Since: FixedColumns 5.0.0

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

Description

Very similar to the fixedColumns.start option, but in this case the option defines the number of columns that will be fixed at the end of the table.

This option is text direction aware - it will fix columns on the left for tables which are displayed with right-to-left text layout.

Columns that are not visible will be ignored.

Type

integer

Description:

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

Default

  • Value: 0

No columns will be fixed to the end of the table.

Examples

Start and end columns fixed:

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

No fixed columns at the start of the table, one at the end:

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