row().blur()
Blur focus from a row.
Please note - this property requires the Select extension for DataTables.
Description
When select.keys
is enabled rows in the table can gain focus to allow keyboard navigation. This method provides the ability to programmatically blur focus from a row - just as you might with an input
element.
Note that this method only has an effect when select.keys
is enabled. If that option is disabled (or has been disabled via select.keys()
) this method will do nothing. It also will not throw an error - it is just a no operation action.
Type
row().blur()
Move keyboard focus to the row selected.
Returns:
DataTables.Api
API instance that contains a reference to the selected row.
Example
Blur focus from the currently focused row:
table.row(document.activeElement).blur();
Related
The following options are directly related and may also be useful in your application development.