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
function select.blurable()
- Description:
Get the blurable state for the table.
- Returns:
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.
function select.blurable( flag )
- Description:
Set the blurable state for the table's selection options.
- Parameters:
Name Type Optional 1 flag
No Value to set for the blurable option -
true
to enable,false
to disable.- Returns:
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.