{hero}

selectRows

Since: Select 1.0.0

Change the item selection mode to row.
Please note - this property requires the Select extension for DataTables.

Description

Select's ability to dynamically change between what items can be selected in the table (select.items()) can be controlled by this button, and its counterparts: selectColumns and selectCells providing the end user with the ability to switch between item selection type.

If the item selection mode is set to row, this button will show as active (see button().active()).

Example

DataTables initialisation: Provide buttons to change item selection:

new DataTable('#myTable', {
	buttons: ['selectRows', 'selectColumns', 'selectCells']
});