{hero}

select.toggleable()

Since: Select 1.0.0

Get / set the behaviour if items can be deselected when a selected item is clicked on.
Please note - this property requires the Select extension for DataTables.

Description

This method provides the ability to allow the end user to deselect a previously selected item by clicking on it or not. This can be useful if you wish to ensure there is at least one row selected in the DataTable.

Types

select.toggleable()

Get the toggle state of Select for the given DataTable.

Returns:

boolean true if the item can be deselected when clicked on, false if it cannot be.

select.toggleable( set )

Set the toggle state of Select for the DataTable.

Parameters:

Returns:

DataTables.Api DataTables API instance for chaining.

Related

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