selectNone
Since: Select 1.0.0
Deselect all selected items in the table.
Please note - this property requires the Select extension for DataTables.
Description
The selectNone
button will deselect all currently selected items in the table. Note that unlike the selectAll
button, this button does not base the de-selection on the current item selection mode. All selected items, regardless of selection mode will be deselected when activated.
Example
DataTables initialisation: Show select all and select none buttons with language options in the DataTables language object:
new DataTable('#myTable', {
buttons: ['selectAll', 'selectNone'],
language: {
buttons: {
selectAll: 'Select all items',
selectNone: 'Select none'
}
}
});