{hero}

columnDefs.target

Since: DataTables 1.12

Alias of targets.

Description

This option is simply an alias of the columnDefs.targets option and is provided to allow for clarity when matching against a single column only.

Type

This option can be given in the following type(s):

Example

Disable filtering on the first column:

$('#example').DataTable({
	columnDefs: [
		{
			target: 0,
			searchable: false
		}
	]
});

Related

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