cells().data()
Since: DataTables 1.10
Get data for the selected cells.
Description
This method is used to obtain the data from the cells retrieved by the selector used in the cells()
call.
Note that unlike its singular counter part (cell().data()
) this method does not have a 'set' form. It can only be used to retrieve data.
Type
function cells().data()
- Description:
Get the data for the selected cells
- Returns:
DataTables API instance with the data for each selected cell in the result set
Example
Get the data for all cells which have a class of 'info':
var table = new DataTable('#myTable');
var data = table.cells('.info').data();
console.log(data);
Related
The following options are directly related and may also be useful in your application development.