formOptions.inline
Since: Editor 1.3
Form configuration options for inline editing.
Please note - this property requires the Editor extension for DataTables.
Description
This option provides the ability of setting default styling and behavioural options for the inline editing form display (inline()). Options can also be set when calling the API method, which will override the options defined by this parameter.
For full details of the form options available, please refer to the form-options object's documentation.
Type
This option can be given in the following type(s):
Default
The default configuration for this object is:
{
buttons: '_basic', // Shows a submit button based on the i18n options
focus: 0,
message: false,
onBackground: 'blur', // Always true for inline editing
onBlur: 'close',
onComplete: 'close',
onEsc: 'close',
onFieldError: 'focus',
onReturn: 'submit',
refresh: false,
submit: 'changed',
title: false,
drawType: false,
scope: 'row'
}
Example
Set options the inline editor.:
const editor = new DataTable.Editor({
ajax: '/api/staff',
table: '#myTable',
formOptions: {
inline: {
onBlur: true
}
}
});