{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

function select.toggleable()

Description:

Get the toggle state of Select for the given DataTable.

Returns:

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

function select.toggleable( set )

Description:

Set the toggle state of Select for the DataTable.

Parameters:
Returns:

DataTables API instance for chaining.

Related

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