select.blurable()
Get / set the blurable state of the table's item selection options.
Please note - this property requires the Select extension for DataTables.
Description
Select provides the ability for the item selection in the table to be removed when the end user clicks on an element outside of the table - i.e. the selection is blurred. This ability can be enabled and disabled dynamically using this method.
Types
select.blurable()
Get the blurable state for the table.
Returns:
boolean
Current state - true
if blurable, false
otherwise. Note that if multiple tables are defined in the API's context, only the blurable state of the first table will be returned.
select.blurable( flag )
Set the blurable state for the table's selection options.
Parameters:
Name | Type | Optional | |
---|---|---|---|
1 | flag | No | |
Value to set for the blurable option - |
Returns:
DataTables.Api
DataTables API instance for chaining.
Example
Enable item selection bluring using the API:
var table = new DataTable('#myTable');
table.select.blurable(true);
Related
The following options are directly related and may also be useful in your application development.