fixedColumns().start()
Get / set the number of columns fixed at the start 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 start 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 start and the table is updated.
This method is text direction aware. It will freeze columns at the start of the table regardless of text direction (i.e. on the left for left-to-right text and on the right for right-to-left text).
Types
fixedColumns().start()
Getter for the number of columns fixed to the start of a table.
Returns:
number
The number of columns that are fixed to the start of a table.
fixedColumns().start( val )
Updates the DataTable to fix the new number of columns to the start of the table.
Parameters:
Name | Type | Optional | |
---|---|---|---|
1 | val | No | |
The new number of columns to fix to the start of a table. |
Returns:
DataTables Api
DataTables Api for chaining.