keys.editAutoSelect

Since: KeyTable KeyTable 2.3.0

Set if Editor should automatically select the text in the input. Please note - this property requires the KeyTable extension for DataTables.

Description

When KeyTable is used to navigate a table and activate inline editing, it will, by default, automatically select the text in the input element. This provides an editing interface which acts very much like Excel - start typing and it will replace the existing values with the new text.

    At times, however, you might wish to append to the existing text. This option provides the ability to disable the default action of selecting all text.

Type

boolean

Description:

true to enable auto select, false to disable.

Default

  • Value: true

Editor will automatically select the text in the input element when inline editing is activated by KeyTable.

Example

Disable auto selection of text:

$('#myTable').DataTable( {
	keys: {
		editor: editor,
        editAutoSelect: false
	}
} );

Related

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