{hero}

cell().fixedNode()

Since: FixedColumns 3.8.0

Get the fixed column cell node for a cell.
Please note - this property requires the FixedColumns extension for DataTables.

Description

Generally when working with FixedColumns and events, you want to convert from a cell in the fixed column to the host cell or row in the DataTable (to get the full data for the row for example). DataTables' row, column and cell selectors does that for us, but it can also be useful to go the other way - needing to get the fixed cell from a DataTable API cell reference. This method provides that ability.

Using a standard cell() selector, then call fixedNode() to get the node for that cell in the fixed column. You might want to do this if you need to draw something temporarily into the fixed cell without effecting the table's data for example.

Note that this method will return the cell from the original DataTable if there is no matching fixed cell found (e.g. requesting a node from a non-fixed column).

Type

function cell().fixedNode()

Description:

Get the node for a cell from a fixed column, or if not fixed, get the node from the main table.

Returns:

Node for the cell requested

Example

Get the fixed cell from a cell index:

$('#example').DataTable().cell(2, 0).fixedNode()

Related

The following options are directly related and may also be useful in your application development.