keys.editOnFocus
Control if editing should be activated immediately upon focus.
Please note - this property requires the KeyTable extension for DataTables.
Description
When used with Editor (keys.editor
), inline editing will not be triggered by KeyTable until a key value is pressed when a cell is focused (similar to Excel). However, you may wish to immediately place the cell into edit mode when the focus happens. This option provides that ability.
Type
boolean
true
to enable editing on focus, false
to disable.
Default
- Value:
false
The cell is not automatically put into inline editing mode when the cell is focused.
Example
Immediately trigger inline editing, when the cell is focused.:
new DataTable('#myTable', {
keys: {
editor: editor,
editOnFocus: true
}
});
Related
The following options are directly related and may also be useful in your application development.