formOptions.bubble

Since: Editor 1.3

Form configuration options for bubble 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 bubble editing form display (bubble()). 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:       true,
    focus:         0,
    message:       false,
    onBackground:  'blur',
    onBlur:        'close',
    onComplete:    'close',
    onEsc:         'close',
    onFieldError:  'focus',
    onReturn:      'submit',
    refresh:       false,
    submit:        'changed',
    title:         false,
    drawType:      false,
    scope:         'row'
}

Example

Set options the bubble editor.:

const editor = new DataTable.Editor({
	ajax: '/api/staff',
	table: '#myTable',
	formOptions: {
		bubble: {
			title: true,
			onBackground: false
		}
	}
});