{hero}

keys.blurable

Since: KeyTable 2.0.0

Allow KeyTable's focus to be blurred (removed) from a table.
Please note - this property requires the KeyTable extension for DataTables.

Description

By default KeyTable will make the table act like a normal input element in an HTML page and the tab key can be used to move focus between fields. Tabbing when focused on the last cell in the table will then move the focus on to the next form element in the document - thus blurring the table.

This ability to loose focus (blurring) can be disabled in KeyTable by setting this option to false. That means that once the table has been focused (which it can be automatically using keys.focus) focus cannot be removed (although interaction can be disabled using keys.disable()).

Type

boolean

Description:

When set to true this option allows the table to lose focus (i.e. to be blurred), while false will not allow the table to lose focus.

Default

  • Value: true

Focus can be removed from the table

Example

Disallow the table form loosing focus:

new DataTable('#myTable', {
	keys: {
		blurable: false
	}
});

Related

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