{hero}

column().selected()

Since: Select 1.4.0

Determine if a column has been selected.
Please note - this property requires the Select extension for DataTables.

Description

This method can be used to determine the selection state of an individual column.

Type

function column().selected()

Description:

Determine if a column has been selected.

Returns:

Selection flag indicator.

Example

Check if the first column in the table is selected or not:

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

if (table.column(':eq(0)').selected()) {
	console.log('Column is selected');
}
else {
	console.log('Column is not selected');
}

Related

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