Since: Select 1.0.0

Set which table items to select (rows, columns or cells).
Please note - this property requires the Select extension for DataTables.


Select has the ability to select rows, columns or cells in a DataTable. As well as being able to select each table element type you can also combine the selection to have multiple different item types selected at the same time.

This option provides the ability to define which table item type will be selected by user interaction with a mouse. The items to be selected can also be defined at run time using the select.items() method.




This option can take one of the following values:

  • row - select rows
  • column - select columns
  • cell - select cells


  • Value: row


Select columns on load:

new DataTable('#myTable', {
	select: {
		items: 'column'

Select cells on load:

new DataTable('#myTable', {
	select: {
		items: 'cell'