{hero}

cells().select()

Since: Select 1.0.0

Select cells.
Please note - this property requires the Select extension for DataTables.

Description

This method simply selects the cells that have been found by the cells() selector method.

Selected cells can later be retrieved using the selected extension to the selector-modifier object - for example table.cells( { selected: true } ).data() will get the data of all cells which are selected in the table.

Type

function cells().select()

Description:

Select one or more cells in the table, based on the cells found by the cells() method.

Returns:

API instance that contains a reference to the selected cells.

Examples

Select all cells which have a class of 'important':

var table = new DataTable('#myTable');

table.cells('.important').select();

Select all cells in column index 1 on the current page:

var table = new DataTable('#myTable');

table.cells(null, 1, { page: 'current' }).select();

Related

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