fixedColumns().left()
Get / set the number of fixed columns on the left side of a table.
Please note - this property requires the FixedColumns extension for DataTables.
Description
This method is either a getter or a setter for the number of columns that are fixed to the left of the table. If no argument is supplied then the method acts as a getter. If an argument is provided then that value is set as the new number of columns to be fixed to the left and the table is updated.
As of FixedColumns 5 this method is text direction aware and will fix columns at the left hand side of the table regardless of text direction.
Types
fixedColumns().left()
Getter for the number of columns fixed to the left.
Returns:
number
The number of columns that are fixed to the left.
fixedColumns().left(val)
Updates the DataTable to fix the new number of columns to the left.
Parameters:
Name | Type | Optional | |
---|---|---|---|
1 | val | No | |
The new number of columns to fix to the left. As of FixedColumns 4.3 a check is made to make sure that the value given is with in the range of 0 to the number of columns in the table (inclusive). |
Returns:
DataTables Api
Datatables Api for chaining.