{hero}

selectAll

Since: Select 1.0.0

Select all items in the table based on the current item select mode.
Please note - this property requires the Select extension for DataTables.

Description

The selectAll button will simply select all items in the table, based on the current item selection mode (select.items()) - e.g. if the item selection mode is rows, all rows in the table will be selected when this button is activated.

Example

DataTables initialisation: Show select all and select none buttons with language options in the DataTables language object:

$('#myTable').DataTable( {
	buttons: [
		'selectAll',
		'selectNone'
	],
	language: {
		buttons: {
			selectAll: "Select all items",
			selectNone: "Select none"
		}
	}
} );